Package org.tribuo.classification.sgd
Class Util.ExampleArray
java.lang.Object
org.tribuo.classification.sgd.Util.ExampleArray
- Enclosing class:
- Util
A nominal tuple. One day it'll be a record, but not today.
-
Field Summary
Modifier and TypeFieldDescriptionfinal SparseVector[]
The examples encoded as sparse vectors.final int[]
The label indices.final double[]
The example weights. -
Constructor Summary
ConstructorDescriptionExampleArray
(SparseVector[] features, int[] labels, double[] weights) Constructs an example array. -
Method Summary
-
Field Details
-
features
The examples encoded as sparse vectors. -
labels
public final int[] labelsThe label indices. -
weights
public final double[] weightsThe example weights.
-
-
Constructor Details
-
ExampleArray
Constructs an example array.- Parameters:
features
- The examples' features.labels
- The label indices.weights
- The example weights.
-