Uses of Class
org.tribuo.FeatureMap
Packages that use 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
Subclasses of FeatureMap in org.tribuoModifier 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.Methods in org.tribuo that return FeatureMapModifier and TypeMethodDescriptionabstract FeatureMap
Dataset.getFeatureMap()
Returns this dataset'sFeatureMap
.Methods in org.tribuo with parameters of type FeatureMapModifier 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.Constructors in org.tribuo with parameters of type FeatureMapModifierConstructorDescriptionprotected
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
Subclasses of FeatureMap in org.tribuo.hashModifier 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.Methods in org.tribuo.hash with parameters of type FeatureMapModifier 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
Methods in org.tribuo.impl with parameters of type FeatureMapModifier 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
Methods in org.tribuo.sequence that return FeatureMapModifier and TypeMethodDescriptionabstract FeatureMap
SequenceDataset.getFeatureMap()
The feature map.Methods in org.tribuo.sequence with parameters of type FeatureMapModifier 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.Constructors in org.tribuo.sequence with parameters of type FeatureMapModifierConstructorDescriptionImmutableSequenceDataset
(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
Methods in org.tribuo.transform with parameters of type FeatureMapModifier and TypeMethodDescriptionboolean
TransformationMap.validateTransformations
(FeatureMap featureMap) Checks that a given transformation set doesn't have conflicts when applied to the supplied featureMap.