Uses of Class
org.tribuo.FeatureMap
Package
Description
Provides the core interfaces and classes for using Tribuo.
Provides the base interface and implementations of the
Model
hashing
which obscures the feature names stored in a model.Provides implementations of base classes and interfaces from
org.tribuo
.Provides core classes for working with sequences of
Example
s.Provides infrastructure for applying transformations to a
Dataset
.-
Uses of FeatureMap in org.tribuo
Modifier and TypeClassDescriptionclass
ImmutableFeatureMap is used when unknown features should not be added to the FeatureMap.class
A feature map that can record new feature value observations.Modifier and TypeMethodDescriptionabstract FeatureMap
Dataset.getFeatureMap()
Returns this dataset'sFeatureMap
.Modifier and TypeMethodDescriptionabstract void
Example.canonicalize
(FeatureMap featureMap) Reassigns feature name Strings in the Example to point to those in theFeatureMap
.void
Example.densify
(FeatureMap fMap) Converts all implicit zeros into explicit zeros based on the supplied feature map.boolean
FeatureMap.domainEquals
(FeatureMap other) Check if this feature map contains the same features as the supplied one.static Map<String,
VariableIDInfo> ImmutableFeatureMap.generateIDs
(FeatureMap map) Generates the feature ids by sorting the features with the String comparator, then sequentially numbering them.abstract boolean
Example.isDense
(FeatureMap fMap) Is this example dense wrt the supplied feature map.ModifierConstructorDescriptionprotected
FeatureMap
(FeatureMap map) Constructs a deep copy of the supplied feature map.ImmutableDataset
(Iterable<Example<T>> dataSource, DataProvenance description, OutputFactory<T> outputFactory, FeatureMap featureIDMap, OutputInfo<T> outputIDInfo, boolean dropInvalidExamples) Creates a dataset from a data source.ImmutableDataset
(DataSource<T> dataSource, FeatureMap featureIDMap, OutputInfo<T> outputIDInfo, boolean dropInvalidExamples) Creates a dataset from a data source.Constructs a new immutable version which is a deep copy of the supplied feature map, generating new ID numbers. -
Uses of FeatureMap in org.tribuo.hash
Modifier and TypeClassDescriptionfinal class
AFeatureMap
used by theHashingTrainer
to provide feature name hashing and guarantee that theModel
does not contain feature name information, but still works with unhashed features names.Modifier and TypeMethodDescriptionstatic HashedFeatureMap
HashedFeatureMap.generateHashedFeatureMap
(FeatureMap map, Hasher hasher) Converts a standardFeatureMap
by hashing each entry using the supplied hash functionHasher
. -
Uses of FeatureMap in org.tribuo.impl
Modifier and TypeMethodDescriptionvoid
ArrayExample.canonicalize
(FeatureMap featureMap) void
BinaryFeaturesExample.canonicalize
(FeatureMap featureMap) void
ListExample.canonicalize
(FeatureMap featureMap) void
BinaryFeaturesExample.densify
(FeatureMap fMap) boolean
ArrayExample.isDense
(FeatureMap fMap) boolean
BinaryFeaturesExample.isDense
(FeatureMap fMap) boolean
ListExample.isDense
(FeatureMap fMap) -
Uses of FeatureMap in org.tribuo.sequence
Modifier and TypeMethodDescriptionabstract FeatureMap
SequenceDataset.getFeatureMap()
The feature map.Modifier and TypeMethodDescriptionvoid
SequenceExample.canonicalise
(FeatureMap featureMap) Reassigns feature name Strings in each Example inside this SequenceExample to point to those in theFeatureMap
.void
SequenceExample.densify
(FeatureMap fMap) Converts all implicit zeros into explicit zeros based on the supplied feature map.boolean
SequenceExample.isDense
(FeatureMap fMap) Is this sequence example dense wrt the supplied feature map.ModifierConstructorDescriptionImmutableSequenceDataset
(Iterable<SequenceExample<T>> dataSource, DataProvenance sourceProvenance, FeatureMap featureIDMap, OutputInfo<T> outputIDInfo, OutputFactory<T> outputFactory) Creates a dataset from a data source.ImmutableSequenceDataset
(SequenceDataSource<T> dataSource, FeatureMap featureIDMap, OutputInfo<T> outputIDInfo) Creates a dataset from a data source, using the specified output and feature domains. -
Uses of FeatureMap in org.tribuo.transform
Modifier and TypeMethodDescriptionboolean
TransformationMap.validateTransformations
(FeatureMap featureMap) Checks that a given transformation set doesn't have conflicts when applied to the supplied featureMap.