|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mulan.classifier.neural.DataPair
public class DataPair
Class for representation of a data-pair instance. The data pair contains an input pattern and respected true or expected output pattern for the input pattern.
Constructor Summary | |
---|---|
DataPair(double[] inputPattern,
double[] trueOutput)
Creates a DataPair instance. |
Method Summary | |
---|---|
static List<DataPair> |
createDataPairs(MultiLabelInstances mlDataSet,
boolean bipolarOutput)
Creates a DataPair representation for each Instance contained in
MultiLabelInstances data set. |
double[] |
getInput()
Gets the input pattern. |
double[] |
getOutput()
Gets the ideal/expected output pattern. |
boolean[] |
getOutputBoolean()
Gets the ideal/expected output pattern as boolean values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataPair(double[] inputPattern, double[] trueOutput)
DataPair
instance.
inputPattern
- the input patterntrueOutput
- the true/expected output pattern for the inputMethod Detail |
---|
public double[] getInput()
public double[] getOutput()
public boolean[] getOutputBoolean()
double[]
are not in boolean representation,
then output of this method is might not be valid.
The computation is as follows:true
in booleanfalse
in boolean
public static List<DataPair> createDataPairs(MultiLabelInstances mlDataSet, boolean bipolarOutput)
DataPair
representation for each Instance
contained in
MultiLabelInstances
data set. The DataPair
is a light weight representation
of instance values (by double values), which is useful when iteration over the data and its
values.
mlDataSet
- the MultiLabelInstances
which content has to be
converted to list of DataPair
bipolarOutput
- indicates whether output values should be converted
to bipolar values, or left intact as binary
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |