Class DataSetItem
java.lang.Object
deepnetts.data.DataSetItem
- All Implemented Interfaces:
MLDataItem
Represents a basic data set item (single row) with input tensor and target
vector in a data set.
-
Constructor Summary
ConstructorsConstructorDescriptionDataSetItem(float[] in, float[] targetOut) DataSetItem(TensorBase input, TensorBase targetOutput) -
Method Summary
-
Constructor Details
-
DataSetItem
-
DataSetItem
public DataSetItem(float[] in, float[] targetOut)
-
-
Method Details
-
getInput
Description copied from interface:MLDataItemReturns an input for machine learning model of this item.- Specified by:
getInputin interfaceMLDataItem- Returns:
- an example input for a machine learning model training.
-
getTargetOutput
Description copied from interface:MLDataItemReturns target output for machine learning model of this item.- Specified by:
getTargetOutputin interfaceMLDataItem- Returns:
- target output
-
getError
public float getError()Description copied from interface:MLDataItemReturns a model output error for this data item.- Specified by:
getErrorin interfaceMLDataItem- Returns:
-
setError
public void setError(float error) - Specified by:
setErrorin interfaceMLDataItem
-
toString
-