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
Examples.Provides infrastructure for applying transformations to a
Dataset.-
Uses of FeatureMap in org.tribuo
Subclasses of FeatureMap in org.tribuoModifier and TypeClassDescriptionclassImmutableFeatureMap is used when unknown features should not be added to the FeatureMap.classA feature map that can record new feature value observations.Methods in org.tribuo that return FeatureMapModifier and TypeMethodDescriptionabstract FeatureMapDataset.getFeatureMap()Returns this dataset'sFeatureMap.Methods in org.tribuo with parameters of type FeatureMapModifier and TypeMethodDescriptionabstract voidExample.canonicalize(FeatureMap featureMap) Reassigns feature name Strings in the Example to point to those in theFeatureMap.voidExample.densify(FeatureMap fMap) Converts all implicit zeros into explicit zeros based on the supplied feature map.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 booleanExample.isDense(FeatureMap fMap) Is this example dense wrt the supplied feature map.Constructors in org.tribuo with parameters of type FeatureMapModifierConstructorDescriptionprotectedFeatureMap(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 classAFeatureMapused by theHashingTrainerto provide feature name hashing and guarantee that theModeldoes not contain feature name information, but still works with unhashed features names.Methods in org.tribuo.hash with parameters of type FeatureMapModifier and TypeMethodDescriptionstatic HashedFeatureMapHashedFeatureMap.generateHashedFeatureMap(FeatureMap map, Hasher hasher) Converts a standardFeatureMapby 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 TypeMethodDescriptionvoidArrayExample.canonicalize(FeatureMap featureMap) voidBinaryFeaturesExample.canonicalize(FeatureMap featureMap) voidListExample.canonicalize(FeatureMap featureMap) voidBinaryFeaturesExample.densify(FeatureMap fMap) booleanArrayExample.isDense(FeatureMap fMap) booleanBinaryFeaturesExample.isDense(FeatureMap fMap) booleanListExample.isDense(FeatureMap fMap) -
Uses of FeatureMap in org.tribuo.sequence
Methods in org.tribuo.sequence that return FeatureMapModifier and TypeMethodDescriptionabstract FeatureMapSequenceDataset.getFeatureMap()The feature map.Methods in org.tribuo.sequence with parameters of type FeatureMapModifier and TypeMethodDescriptionvoidSequenceExample.canonicalise(FeatureMap featureMap) Reassigns feature name Strings in each Example inside this SequenceExample to point to those in theFeatureMap.voidSequenceExample.densify(FeatureMap fMap) Converts all implicit zeros into explicit zeros based on the supplied feature map.booleanSequenceExample.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) -
Uses of FeatureMap in org.tribuo.transform
Methods in org.tribuo.transform with parameters of type FeatureMapModifier and TypeMethodDescriptionbooleanTransformationMap.validateTransformations(FeatureMap featureMap) Checks that a given transformation set doesn't have conflicts when applied to the supplied featureMap.