Class DataSetItem

java.lang.Object
deepnetts.data.DataSetItem
All Implemented Interfaces:
MLDataItem

public class DataSetItem extends Object implements MLDataItem
Represents a basic data set item (single row) with input tensor and target vector in a data set.
  • Constructor Details

    • DataSetItem

      public DataSetItem(TensorBase input, TensorBase targetOutput)
    • DataSetItem

      public DataSetItem(float[] in, float[] targetOut)
  • Method Details

    • getInput

      public TensorBase getInput()
      Description copied from interface: MLDataItem
      Returns an input for machine learning model of this item.
      Specified by:
      getInput in interface MLDataItem
      Returns:
      an example input for a machine learning model training.
    • getTargetOutput

      public TensorBase getTargetOutput()
      Description copied from interface: MLDataItem
      Returns target output for machine learning model of this item.
      Specified by:
      getTargetOutput in interface MLDataItem
      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 interface MLDataItem
      Returns:
    • setError

      public void setError(float error)
      Specified by:
      setError in interface MLDataItem
    • toString

      public String toString()
      Overrides:
      toString in class Object