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 TypeMethodDescriptionstatic FeatureMapFeatureMap.deserialize(org.tribuo.protos.core.FeatureDomainProto proto) Deserializes aFeatureDomainProtointo aFeatureMapsubclass.abstract 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.protected DatasetDataCarrier<T> Dataset.createDataCarrier(FeatureMap featureMap, OutputInfo<T> outputInfo) Constructs the data carrier for serialization.protected DatasetDataCarrier<T> Dataset.createDataCarrier(FeatureMap featureMap, OutputInfo<T> outputInfo, List<com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance> transformationProvenances) Constructs the data carrier for serialization.voidExample.densify(FeatureMap fMap) Converts all implicit zeros into explicit zeros based on the supplied feature map.Dataset.deserializeExamples(List<org.tribuo.protos.core.ExampleProto> examplesList, Class<?> outputClass, FeatureMap fmap) Deserializes a list of example protos into a list of examples.booleanFeatureMap.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 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 that return FeatureMapMethods 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) Constructors in org.tribuo.impl with parameters of type FeatureMapModifierConstructorDescriptionDatasetDataCarrier(DataProvenance provenance, FeatureMap featureDomain, OutputInfo<T> outputDomain, OutputFactory<T> outputFactory, List<com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance> transformProvenances, String tribuoVersion) Constructs a new DatasetDataCarrier. -
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.protected DatasetDataCarrier<T> SequenceDataset.createDataCarrier(FeatureMap featureMap, OutputInfo<T> outputInfo) Constructs the data carrier for serialization.voidSequenceExample.densify(FeatureMap fMap) Converts all implicit zeros into explicit zeros based on the supplied feature map.protected static List<SequenceExample<?>> SequenceDataset.deserializeExamples(List<org.tribuo.protos.core.SequenceExampleProto> examplesList, Class<?> outputClass, FeatureMap fmap) Deserializes a list of sequence example protos into a list of sequence examples.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) 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 TypeMethodDescriptionbooleanTransformationMap.validateTransformations(FeatureMap featureMap) Checks that a given transformation set doesn't have conflicts when applied to the supplied featureMap.