Package deepnetts.data
Class TabularDataSet.Item
java.lang.Object
deepnetts.data.TabularDataSet.Item
- All Implemented Interfaces:
MLDataItem
- Enclosing class:
TabularDataSet<T extends MLDataItem>
Represents a basic data set item (single row) with input tensor and
target vector in a data set.
-
Constructor Summary
ConstructorsConstructorDescriptionItem
(float[] in, float[] targetOutput) Item
(TensorBase input, TensorBase targetOutput) -
Method Summary
-
Constructor Details
-
Item
public Item(float[] in, float[] targetOutput) -
Item
-
-
Method Details
-
getInput
Description copied from interface:MLDataItem
Returns an input for machine learning model of this item.- Specified by:
getInput
in interfaceMLDataItem
- Returns:
- an example input for a machine learning model training.
-
getTargetOutput
Description copied from interface:MLDataItem
Returns target output for machine learning model of this item.- Specified by:
getTargetOutput
in interfaceMLDataItem
- Returns:
- target output
-
getError
public float getError()Description copied from interface:MLDataItem
Returns a model output error for this data item.- Specified by:
getError
in interfaceMLDataItem
- Returns:
-
setError
public void setError(float error) - Specified by:
setError
in interfaceMLDataItem
-
toString
-