|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neuroph.core.learning.DataSetRow
public class DataSetRow
Represents training element for supervised learning algorithms. Each supervised training element contains network input and desired network output.
Field Summary | |
---|---|
protected double[] |
input
Input vector for this training element |
protected String |
label
Label for this training element |
Constructor Summary | |
---|---|
DataSetRow(ArrayList<Double> input)
|
|
DataSetRow(ArrayList<Double> input,
ArrayList<Double> desiredOutput)
Creates new training element with specified input and desired output vectors |
|
DataSetRow(double... input)
Creates new training element with input array |
|
DataSetRow(double[] input,
double[] desiredOutput)
Creates new training element with specified input and desired output vectors |
|
DataSetRow(String input,
String desiredOutput)
Creates new training element with specified input and desired output vectors specifed as strings |
Method Summary | |
---|---|
double[] |
getDesiredOutput()
|
double[] |
getInput()
Returns input vector |
String |
getLabel()
Get training element label |
boolean |
isSupervised()
|
void |
setDesiredOutput(double[] desiredOutput)
|
void |
setInput(double[] input)
Sets input vector |
void |
setLabel(String label)
Set training element label |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double[] input
protected String label
Constructor Detail |
---|
public DataSetRow(String input, String desiredOutput)
input
- input vector as space separated stringdesiredOutput
- desired output vector as space separated stringpublic DataSetRow(double[] input, double[] desiredOutput)
input
- input arraydesiredOutput
- desired output arraypublic DataSetRow(double... input)
input
- input arraypublic DataSetRow(ArrayList<Double> input, ArrayList<Double> desiredOutput)
input
- input vectordesiredOutput
- desired output vectorpublic DataSetRow(ArrayList<Double> input)
Method Detail |
---|
public double[] getInput()
public void setInput(double[] input)
input
- input vectorpublic double[] getDesiredOutput()
public void setDesiredOutput(double[] desiredOutput)
public String getLabel()
public void setLabel(String label)
label
- label for this training elementpublic boolean isSupervised()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |