Class IndexedArrayExample.FeatureTuple

java.lang.Object
org.tribuo.impl.IndexedArrayExample.FeatureTuple
Enclosing class:
IndexedArrayExample<T extends Output<T>>

public static class IndexedArrayExample.FeatureTuple extends Object
A tuple of the feature name, id and value.
  • Field Details

    • name

      public String name
      The feature name.
    • id

      public int id
      The feature id number.
    • value

      public double value
      The feature value.
  • Constructor Details

    • FeatureTuple

      public FeatureTuple()
      Constructs an empty feature tuple.
    • FeatureTuple

      public FeatureTuple(String name, int id, double value)
      Constructs a feature tuple using the specified values.
      Parameters:
      name - The feature name.
      id - The feature id number.
      value - The feature value.