org.tribuo
.See: Description
Class | Description |
---|---|
ArrayExample<T extends Output<T>> |
An
Example backed by two arrays, one of String and one of double. |
BinaryFeaturesExample<T extends Output<T>> |
An
Example backed by a single array of feature names. |
IndexedArrayExample<T extends Output<T>> |
A version of ArrayExample which also has the id numbers.
|
IndexedArrayExample.FeatureTuple |
A tuple of the feature name, id and value.
|
ListExample<T extends Output<T>> |
This class will not be performant until value types are available in Java.
|
org.tribuo
.
It contains two base implementations of Example
, one using
primitive arrays and one using a List
of Feature
objects.
The array implementation should be preferred for performance reasons until Feature becomes a value type. There are
two subclasses of ArrayExample
, one which provides an example name, and
the other stores the feature indices. The latter is a performance optimisation and should not be used without
proper consideration.
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.