Uses of Class
org.tribuo.Feature
Package
Description
Provides the core interfaces and classes for using Tribuo.
Provides an implementation of Viterbi for generating structured outputs, which can sit on top of any
Label
based classification model.Provides a multithreaded implementation of K-Means, with a
configurable distance function.
Provides classes for processing columnar data and generating
Example
s.Provides implementations of
FieldProcessor
.Provides implementations of text data processors.
Provides implementations of base classes and interfaces from
org.tribuo
.Provides feature extraction implementations which use ONNX models.
Provides core classes for working with sequences of
Example
s.-
Uses of Feature in org.tribuo
Modifier and TypeMethodDescriptionFeature.clone()
Returns the Feature in this Example which has the supplied name, if it's present.Modifier and TypeMethodDescriptionstatic Comparator<Feature>
Feature.featureNameComparator()
A comparator using the lexicographic ordering of feature names.Modifier and TypeMethodDescriptionabstract void
Adds a feature.int
abstract void
Overwrites the feature with the matching name.Modifier and TypeMethodDescriptionabstract void
Example.addAll
(Collection<? extends Feature> features) Adds a collection of features.abstract void
Example.removeFeatures
(List<Feature> featureList) Removes all features in this list from the Example. -
Uses of Feature in org.tribuo.classification.sequence.viterbi
Modifier and TypeMethodDescriptionDefaultFeatureExtractor.extractFeatures
(List<Label> previousOutcomes, double value) LabelFeatureExtractor.extractFeatures
(List<Label> previousOutcomes, double value) Generates features based on the previously produced labels.NoopFeatureExtractor.extractFeatures
(List<Label> previousOutcomes, double value) -
Uses of Feature in org.tribuo.clustering.kmeans
Modifier and TypeMethodDescriptionKMeansModel.getCentroids()
Returns a list of features, one per centroid. -
Uses of Feature in org.tribuo.data.columnar
Modifier and TypeClassDescriptionclass
A Feature with extra bookkeeping for use inside the columnar package. -
Uses of Feature in org.tribuo.data.columnar.processors.field
Modifier and TypeMethodDescriptionstatic List<ColumnarFeature>
TextFieldProcessor.wrapFeatures
(String fieldName, List<Feature> inputFeatures) Convert theFeature
s from a text pipeline intoColumnarFeature
s with the right field name. -
Uses of Feature in org.tribuo.data.text
Modifier and TypeMethodDescriptionAggregates feature values with the same names.Transforms features into a new list of featuresExtracts a list of features from the supplied text, using the tag to prepend the feature names.Extracts features from the supplied text.Extracts features from the supplied text. -
Uses of Feature in org.tribuo.data.text.impl
Modifier and TypeMethodDescription -
Uses of Feature in org.tribuo.impl
Modifier and TypeMethodDescriptionModifier and TypeMethodDescriptionArrayExample.iterator()
BinaryFeaturesExample.iterator()
ListExample.iterator()
Modifier and TypeMethodDescriptionvoid
void
Adds a feature to this example.void
void
static void
BinaryFeaturesExample.checkIsBinary
(Feature feature) Checks if the supplied feature is binary, if not throw anIllegalArgumentException
.static boolean
Is the supplied feature binary (i.e., does it have a value of 1.0)?void
void
void
Modifier and TypeMethodDescriptionvoid
ArrayExample.addAll
(Collection<? extends Feature> features) void
BinaryFeaturesExample.addAll
(Collection<? extends Feature> features) Adds a collection of features to this example.void
IndexedArrayExample.addAll
(Collection<? extends Feature> features) void
ListExample.addAll
(Collection<? extends Feature> features) void
ArrayExample.removeFeatures
(List<Feature> featureList) void
BinaryFeaturesExample.removeFeatures
(List<Feature> featureList) void
IndexedArrayExample.removeFeatures
(List<Feature> featureList) void
ListExample.removeFeatures
(List<Feature> featureList) ModifierConstructorDescriptionArrayExample
(T output, List<? extends Feature> features) Constructs an example from an output and a list of features.BinaryFeaturesExample
(T output, List<? extends Feature> features) Constructs an example from an output and a list of features.ListExample
(T output, List<? extends Feature> features) Constructs a ListExample using the specified output and feature list. -
Uses of Feature in org.tribuo.interop.onnx.extractors
Modifier and TypeMethodDescriptionTokenizes the input using the loaded tokenizer, truncates the token list if it's longer thanmaxLength
- 2 (to account for [CLS] and [SEP] tokens), and then passes the token list toBERTFeatureExtractor.extractExample(java.util.List<java.lang.String>)
. -
Uses of Feature in org.tribuo.sequence
Modifier and TypeMethodDescriptionSequenceExample.featureIterator()
Creates an iterator over every feature in this sequence.Modifier and TypeMethodDescriptionstatic <T extends Output<T>>
SequenceExample<T>SequenceExample.createWithEmptyOutputs
(List<? extends List<? extends Feature>> features, OutputFactory<T> outputFactory) Creates a SequenceExample usingOutputFactory.getUnknownOutput()
as the output for each sequence element.void
SequenceExample.removeFeatures
(List<Feature> features) Removes the features in the supplied list from each example contained in this sequence.