Uses of Class
org.tribuo.Feature
Packages that use 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 an implementation of HDBSCAN*.
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
Methods in org.tribuo that return FeatureModifier and TypeMethodDescriptionFeature.clone()
Returns the Feature in this Example which has the supplied name, if it's present.Methods in org.tribuo that return types with arguments of type FeatureModifier and TypeMethodDescriptionstatic Comparator<Feature>
Feature.featureNameComparator()
A comparator using the lexicographic ordering of feature names.Methods in org.tribuo with parameters of type FeatureModifier and TypeMethodDescriptionabstract void
Adds a feature.int
abstract void
Overwrites the feature with the matching name.Method parameters in org.tribuo with type arguments of type FeatureModifier 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
Methods in org.tribuo.classification.sequence.viterbi that return types with arguments of type FeatureModifier 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.hdbscan
Methods in org.tribuo.clustering.hdbscan that return types with arguments of type FeatureModifier and TypeMethodDescriptionHdbscanModel.getClusters()
Returns the features in each cluster exemplar. -
Uses of Feature in org.tribuo.clustering.kmeans
Methods in org.tribuo.clustering.kmeans that return types with arguments of type FeatureModifier and TypeMethodDescriptionKMeansModel.getCentroids()
Returns a list of features, one per centroid. -
Uses of Feature in org.tribuo.data.columnar
Subclasses of Feature in org.tribuo.data.columnarModifier and TypeClassDescriptionclass
A Feature with extra bookkeeping for use inside the columnar package. -
Uses of Feature in org.tribuo.data.columnar.processors.field
Method parameters in org.tribuo.data.columnar.processors.field with type arguments of type FeatureModifier 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
Methods in org.tribuo.data.text that return types with arguments of type FeatureModifier 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.Method parameters in org.tribuo.data.text with type arguments of type Feature -
Uses of Feature in org.tribuo.data.text.impl
Methods in org.tribuo.data.text.impl that return types with arguments of type FeatureModifier and TypeMethodDescriptionMethod parameters in org.tribuo.data.text.impl with type arguments of type Feature -
Uses of Feature in org.tribuo.impl
Methods in org.tribuo.impl that return FeatureModifier and TypeMethodDescriptionMethods in org.tribuo.impl that return types with arguments of type FeatureModifier and TypeMethodDescriptionArrayExample.iterator()
BinaryFeaturesExample.iterator()
ListExample.iterator()
Methods in org.tribuo.impl with parameters of type FeatureModifier 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
Method parameters in org.tribuo.impl with type arguments of type FeatureModifier 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) Constructor parameters in org.tribuo.impl with type arguments of type FeatureModifierConstructorDescriptionArrayExample
(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
Methods in org.tribuo.interop.onnx.extractors that return types with arguments of type FeatureModifier 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
Methods in org.tribuo.sequence that return types with arguments of type FeatureModifier and TypeMethodDescriptionSequenceExample.featureIterator()
Creates an iterator over every feature in this sequence.Method parameters in org.tribuo.sequence with type arguments of type FeatureModifier 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.