Class Util.ExampleArray

java.lang.Object
org.tribuo.classification.sgd.Util.ExampleArray
Enclosing class:
Util

public static class Util.ExampleArray extends Object
A nominal tuple. One day it'll be a record, but not today.
  • Field Details

    • features

      public final SparseVector[] features
      The examples encoded as sparse vectors.
    • labels

      public final int[] labels
      The label indices.
    • weights

      public final double[] weights
      The example weights.
  • Constructor Details

    • ExampleArray

      public ExampleArray(SparseVector[] features, int[] labels, double[] weights)
      Constructs an example array.
      Parameters:
      features - The examples' features.
      labels - The label indices.
      weights - The example weights.