Uses of Class
org.tribuo.ImmutableFeatureMap
Packages that use ImmutableFeatureMap
Package
Description
Provides the core interfaces and classes for using Tribuo.
Provides utility datasets which subsample or otherwise
transform the wrapped dataset.
Provides an interface for model prediction combinations,
two base classes for ensemble models, a base class for
ensemble excuses, and a Bagging implementation.
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.-
Uses of ImmutableFeatureMap in org.tribuo
Fields in org.tribuo declared as ImmutableFeatureMapModifier and TypeFieldDescriptionprotected ImmutableFeatureMapImmutableDataset.featureIDMapA map from feature names to IDs for the features found in this dataset.protected final ImmutableFeatureMapModel.featureIDMapThe features this model knows about.Methods in org.tribuo that return ImmutableFeatureMapModifier and TypeMethodDescriptionstatic ImmutableFeatureMapImmutableFeatureMap.deserializeFromProto(int version, String className, com.google.protobuf.Any message) Deserialization factory.abstract ImmutableFeatureMapDataset.getFeatureIDMap()Returns or generates anImmutableFeatureMap.ImmutableDataset.getFeatureIDMap()Model.getFeatureIDMap()Gets the feature domain.MutableDataset.getFeatureIDMap()ImmutableDataset.getFeatureMap()Methods in org.tribuo with parameters of type ImmutableFeatureMapModifier and TypeMethodDescriptionstatic <T extends Output<T>>
ImmutableDataset<T> ImmutableDataset.copyDataset(Dataset<T> dataset, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDInfo) Creates an immutable deep copy of the supplied dataset, using a different feature and output map.static <T extends Output<T>>
ImmutableDataset<T> ImmutableDataset.copyDataset(Dataset<T> dataset, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDInfo, Merger merger) Creates an immutable deep copy of the supplied dataset.Constructors in org.tribuo with parameters of type ImmutableFeatureMapModifierConstructorDescriptionImmutableDataset(Iterable<Example<T>> dataSource, DataProvenance description, OutputFactory<T> outputFactory, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDInfo, boolean dropInvalidExamples) Creates a dataset from a data source.protectedImmutableDataset(DataProvenance provenance, OutputFactory<T> factory, String tribuoVersion, ImmutableFeatureMap fmap, ImmutableOutputInfo<T> outputInfo, List<Example<T>> examples, boolean dropInvalidExamples) Deserialization constructor.protectedImmutableDataset(DataProvenance description, OutputFactory<T> outputFactory, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDInfo) This is dangerous, and should not be used unless you've overridden everything in ImmutableDataset.protectedModel(String name, ModelProvenance provenance, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDInfo, boolean generatesProbabilities) Constructs a new model, storing the supplied fields.SparseModel(String name, ModelProvenance provenance, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDInfo, boolean generatesProbabilities, Map<String, List<String>> activeFeatures) Constructs a sparse model from the supplied arguments. -
Uses of ImmutableFeatureMap in org.tribuo.dataset
Methods in org.tribuo.dataset that return ImmutableFeatureMapMethods in org.tribuo.dataset with parameters of type ImmutableFeatureMapModifier and TypeMethodDescriptionstatic <T extends Output<T>>
DatasetView<T> DatasetView.createBootstrapView(Dataset<T> dataset, int size, long seed, ImmutableFeatureMap featureIDs, ImmutableOutputInfo<T> outputIDs) Generates a DatasetView bootstrapped from the supplied Dataset.static <T extends Output<T>>
DatasetView<T> DatasetView.createWeightedBootstrapView(Dataset<T> dataset, int size, long seed, float[] exampleWeights, ImmutableFeatureMap featureIDs, ImmutableOutputInfo<T> outputIDs) Generates a DatasetView bootstrapped from the supplied Dataset using the supplied example weights.Constructors in org.tribuo.dataset with parameters of type ImmutableFeatureMapModifierConstructorDescriptionDatasetView(Dataset<T> dataset, int[] exampleIndices, ImmutableFeatureMap featureIDs, ImmutableOutputInfo<T> labelIDs, String tag) Creates a DatasetView which includes the supplied indices from the dataset. -
Uses of ImmutableFeatureMap in org.tribuo.ensemble
Methods in org.tribuo.ensemble with parameters of type ImmutableFeatureMapModifier and TypeMethodDescriptionBaggingTrainer.trainSingleModel(Dataset<T> examples, ImmutableFeatureMap featureIDs, ImmutableOutputInfo<T> labelIDs, int randInt, Map<String, com.oracle.labs.mlrg.olcut.provenance.Provenance> runProvenance, int invocationCount) Trains a single model.Constructors in org.tribuo.ensemble with parameters of type ImmutableFeatureMapModifierConstructorDescriptionprotectedEnsembleModel(String name, EnsembleModelProvenance provenance, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDInfo, List<Model<T>> newModels) Builds an EnsembleModel from the supplied model list.WeightedEnsembleModel(String name, EnsembleModelProvenance provenance, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDInfo, List<Model<T>> newModels, EnsembleCombiner<T> combiner) Unless you are implementing aTraineryou should not use this constructor directly.WeightedEnsembleModel(String name, EnsembleModelProvenance provenance, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDInfo, List<Model<T>> newModels, EnsembleCombiner<T> combiner, float[] weights) Unless you are implementing aTraineryou should not use this constructor directly. -
Uses of ImmutableFeatureMap in org.tribuo.hash
Subclasses of ImmutableFeatureMap 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. -
Uses of ImmutableFeatureMap in org.tribuo.impl
Methods in org.tribuo.impl that return ImmutableFeatureMapConstructors in org.tribuo.impl with parameters of type ImmutableFeatureMapModifierConstructorDescriptionIndexedArrayExample(Example<T> other, ImmutableFeatureMap featureMap, ImmutableOutputInfo<T> outputMap) This constructor removes unknown features.ModelDataCarrier(String name, ModelProvenance provenance, ImmutableFeatureMap featureDomain, ImmutableOutputInfo<T> outputDomain, boolean generatesProbabilities, String tribuoVersion) Constructs a new ModelDataCarrier. -
Uses of ImmutableFeatureMap in org.tribuo.sequence
Fields in org.tribuo.sequence declared as ImmutableFeatureMapModifier and TypeFieldDescriptionprotected ImmutableFeatureMapImmutableSequenceDataset.featureIDMapA map from feature names to IDs for the features found in this dataset.protected final ImmutableFeatureMapSequenceModel.featureIDMapThe feature domain.Methods in org.tribuo.sequence that return ImmutableFeatureMapModifier and TypeMethodDescriptionImmutableSequenceDataset.getFeatureIDMap()MutableSequenceDataset.getFeatureIDMap()abstract ImmutableFeatureMapSequenceDataset.getFeatureIDMap()An immutable view on the feature map.SequenceModel.getFeatureIDMap()Gets the feature domain.ImmutableSequenceDataset.getFeatureMap()Methods in org.tribuo.sequence with parameters of type ImmutableFeatureMapModifier and TypeMethodDescriptionstatic <T extends Output<T>>
ImmutableSequenceDataset<T> ImmutableSequenceDataset.copyDataset(SequenceDataset<T> dataset, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDInfo) Creates an immutable deep copy of the supplied dataset, using a different feature and output map.static <T extends Output<T>>
ImmutableSequenceDataset<T> ImmutableSequenceDataset.copyDataset(SequenceDataset<T> dataset, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDInfo, Merger merger) Creates an immutable deep copy of the supplied dataset.Constructors in org.tribuo.sequence with parameters of type ImmutableFeatureMapModifierConstructorDescriptionImmutableSequenceDataset(Iterable<SequenceExample<T>> dataSource, DataProvenance sourceProvenance, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDInfo, OutputFactory<T> outputFactory) Creates a dataset from a data source.protectedImmutableSequenceDataset(DataProvenance sourceProvenance, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDInfo) This is dangerous, and should not be used unless you've overridden everything in ImmutableSequenceDataset.protectedImmutableSequenceDataset(DataProvenance provenance, OutputFactory<T> factory, String tribuoVersion, ImmutableFeatureMap fmap, ImmutableOutputInfo<T> outputInfo, List<SequenceExample<T>> examples) Deserialization constructor.SequenceModel(String name, ModelProvenance provenance, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDMap) Builds a SequenceModel.