Uses of Interface
org.tribuo.ImmutableOutputInfo
Packages that use ImmutableOutputInfo
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 implementations of base classes and interfaces from
org.tribuo.Provides core classes for working with sequences of
Examples.-
Uses of ImmutableOutputInfo in org.tribuo
Fields in org.tribuo declared as ImmutableOutputInfoModifier and TypeFieldDescriptionprotected ImmutableOutputInfo<T> ImmutableDataset.outputIDInfoOutput information, and id numbers for outputs found in this dataset.protected final ImmutableOutputInfo<T> Model.outputIDInfoThe outputs this model predicts.Methods in org.tribuo that return ImmutableOutputInfoModifier and TypeMethodDescriptionOutputFactory.constructInfoForExternalModel(Map<T, Integer> mapping) Creates anImmutableOutputInfofrom the supplied mapping.OutputInfo.generateImmutableOutputInfo()Generates anImmutableOutputInfowhich has a copy of the data in thisOutputInfo, but also has id values and is immutable.abstract ImmutableOutputInfo<T> Dataset.getOutputIDInfo()Returns or generates anImmutableOutputInfo.ImmutableDataset.getOutputIDInfo()Model.getOutputIDInfo()Gets the output domain.MutableDataset.getOutputIDInfo()ImmutableDataset.getOutputInfo()Methods in org.tribuo with parameters of type ImmutableOutputInfoModifier 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.default booleanImmutableOutputInfo.domainAndIDEquals(ImmutableOutputInfo<T> other) Checks if the domain is the same as the other output info's domain, and that each element is mapped to the same id number.Constructors in org.tribuo with parameters of type ImmutableOutputInfoModifierConstructorDescriptionImmutableDataset(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 ImmutableOutputInfo in org.tribuo.dataset
Methods in org.tribuo.dataset that return ImmutableOutputInfoMethods in org.tribuo.dataset with parameters of type ImmutableOutputInfoModifier 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 ImmutableOutputInfoModifierConstructorDescriptionDatasetView(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 ImmutableOutputInfo in org.tribuo.ensemble
Methods in org.tribuo.ensemble with parameters of type ImmutableOutputInfoModifier and TypeMethodDescriptionEnsembleCombiner.combine(ImmutableOutputInfo<T> outputInfo, List<Prediction<T>> predictions) Combine the predictions.EnsembleCombiner.combine(ImmutableOutputInfo<T> outputInfo, List<Prediction<T>> predictions, float[] weights) Combine the supplied predictions.BaggingTrainer.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 ImmutableOutputInfoModifierConstructorDescriptionprotectedEnsembleModel(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 ImmutableOutputInfo in org.tribuo.impl
Methods in org.tribuo.impl that return ImmutableOutputInfoConstructors in org.tribuo.impl with parameters of type ImmutableOutputInfoModifierConstructorDescriptionIndexedArrayExample(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 ImmutableOutputInfo in org.tribuo.sequence
Fields in org.tribuo.sequence declared as ImmutableOutputInfoModifier and TypeFieldDescriptionprotected ImmutableOutputInfo<T> ImmutableSequenceDataset.outputIDInfoA map from labels to IDs for the labels found in this dataset.protected final ImmutableOutputInfo<T> SequenceModel.outputIDMapThe output domain.Methods in org.tribuo.sequence that return ImmutableOutputInfoModifier and TypeMethodDescriptionImmutableSequenceDataset.getOutputIDInfo()MutableSequenceDataset.getOutputIDInfo()abstract ImmutableOutputInfo<T> SequenceDataset.getOutputIDInfo()An immutable view on the output info in this dataset.SequenceModel.getOutputIDInfo()Gets the output domain.ImmutableSequenceDataset.getOutputInfo()Methods in org.tribuo.sequence with parameters of type ImmutableOutputInfoModifier 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 ImmutableOutputInfoModifierConstructorDescriptionImmutableSequenceDataset(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.