Package org.tribuo.impl
Class IndexedArrayExample.FeatureTuple
java.lang.Object
org.tribuo.impl.IndexedArrayExample.FeatureTuple
- Enclosing class:
- IndexedArrayExample<T extends Output<T>>
A tuple of the feature name, id and value.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructs an empty feature tuple.FeatureTuple
(String name, int id, double value) Constructs a feature tuple using the specified values. -
Method Summary
-
Field Details
-
name
The feature name. -
id
public int idThe feature id number. -
value
public double valueThe feature value.
-
-
Constructor Details
-
FeatureTuple
public FeatureTuple()Constructs an empty feature tuple. -
FeatureTuple
Constructs a feature tuple using the specified values.- Parameters:
name
- The feature name.id
- The feature id number.value
- The feature value.
-