public class DataSetRow extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected double[] |
input
Input vector for this training element
|
protected String |
label
Label for this training element
|
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
double[] |
getDesiredOutput() |
double[] |
getInput()
Returns input vector
|
String |
getLabel()
Get training element label
|
int |
hashCode() |
boolean |
isSupervised() |
void |
setDesiredOutput(double[] desiredOutput) |
void |
setInput(double[] input)
Sets input vector
|
void |
setLabel(String label)
Set training element label
|
double[] |
toArray() |
String |
toCSV() |
String |
toString() |
protected double[] input
protected String label
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 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()
public double[] toArray()
public String toCSV()
Copyright © 2019 Neuroph Project. All rights reserved.