Package org.tribuo.impl
package org.tribuo.impl
Provides implementations of base classes and interfaces from
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 is
a subclass of ArrayExample
which stores the feature indices. This is a performance
optimisation and should not be used without proper consideration.
-
ClassDescriptionArrayExample<T extends Output<T>>An
Example
backed by two arrays, one of String and one of double.BinaryFeaturesExample<T extends Output<T>>AnExample
backed by a single array of feature names.DatasetDataCarrier<T extends Output<T>>Serialization carrier for common fields in Dataset.IndexedArrayExample<T extends Output<T>>A version of ArrayExample which also has the id numbers.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.ModelDataCarrier<T extends Output<T>>Serialization carrier for common fields in Model and SequenceModel.