Uses of Class
org.tribuo.Prediction
Packages that use Prediction
Package
Description
Provides the core interfaces and classes for using Tribuo.
Provides an interface for model prediction combinations,
two base classes for ensemble models, a base class for
ensemble excuses, and a Bagging implementation.
Evaluation base classes, along with code for train/test splits and cross validation.
This package contains the infrastructure classes for building evaluation metrics.
Provides core classes for working with sequences of
Examples.Provides infrastructure for applying transformations to a
Dataset.-
Uses of Prediction in org.tribuo
Methods in org.tribuo that return PredictionModifier and TypeMethodDescriptionstatic Prediction<?> Prediction.deserializeFromProto(int version, String className, com.google.protobuf.Any message) Deserialization factory.Excuse.getPrediction()Returns the prediction being excused.abstract Prediction<T> Uses the model to predict the output for a single example.Methods in org.tribuo that return types with arguments of type PredictionModifier and TypeMethodDescriptionprotected List<Prediction<T>> Model.innerPredict(Iterable<Example<T>> examples) Called by the base implementations ofModel.predict(Iterable)andModel.predict(Dataset).List<Prediction<T>> Uses the model to predict the output for multiple examples.List<Prediction<T>> Uses the model to predict the outputs for multiple examples contained in a data set.Methods in org.tribuo with parameters of type PredictionModifier and TypeMethodDescriptionbooleanPrediction.distributionEquals(Prediction<T> other) Checks that the other prediction has the same distribution as this prediction, using theOutput.fullEquals(T)method.booleanPrediction.distributionEquals(Prediction<T> other, double threshold) Checks that the other prediction has the same distribution as this prediction, using theOutput.fullEquals(T)method.Constructors in org.tribuo with parameters of type PredictionModifierConstructorDescriptionExcuse(Example<T> example, Prediction<T> prediction, Map<String, List<com.oracle.labs.mlrg.olcut.util.Pair<String, Double>>> weights) Constructs an excuse for the prediction of the supplied example, using the feature weights.Prediction(Prediction<T> other, int numUsed, Example<T> example) Constructs a prediction from the supplied arguments. -
Uses of Prediction in org.tribuo.ensemble
Methods in org.tribuo.ensemble that return PredictionModifier 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.Method parameters in org.tribuo.ensemble with type arguments of type PredictionModifier 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.Constructors in org.tribuo.ensemble with parameters of type PredictionModifierConstructorDescriptionEnsembleExcuse(Example<T> example, Prediction<T> prediction, Map<String, List<com.oracle.labs.mlrg.olcut.util.Pair<String, Double>>> weights, List<Excuse<T>> innerExcuses) Constructs an ensemble excuse, comprising the excuses from each ensemble member, along with the feature weights. -
Uses of Prediction in org.tribuo.evaluation
Methods in org.tribuo.evaluation that return PredictionModifier and TypeMethodDescriptionOnlineEvaluator.predictAndObserve(Example<T> example) Feeds the example to the model, records the prediction and returns it.Methods in org.tribuo.evaluation that return types with arguments of type PredictionModifier and TypeMethodDescriptionList<Prediction<T>> Evaluation.getPredictions()Gets the predictions stored in this evaluation.List<Prediction<T>> OnlineEvaluator.predictAndObserve(Iterable<Example<T>> examples) Feeds the examples to the model, records the predictions and returns them.Methods in org.tribuo.evaluation with parameters of type PredictionModifier and TypeMethodDescriptionvoidOnlineEvaluator.observe(Prediction<T> newPrediction) Records the supplied prediction.Method parameters in org.tribuo.evaluation with type arguments of type PredictionModifier and TypeMethodDescriptionprotected abstract CAbstractEvaluator.createContext(Model<T> model, List<Prediction<T>> predictions) Create the context needed for evaluation.final EAbstractEvaluator.evaluate(Model<T> model, List<Prediction<T>> predictions, DataProvenance dataProvenance) Produces an evaluation for the supplied model and predictions by aggregating the appropriate statistics.default EEvaluator.evaluate(Model<T> model, List<Prediction<T>> predictions, List<T> groundTruth, DataProvenance dataProvenance) Evaluates the model performance using the supplied predictions, returning an immutableEvaluationof the appropriate type.Evaluator.evaluate(Model<T> model, List<Prediction<T>> predictions, DataProvenance dataProvenance) Evaluates the model performance using the supplied predictions, returning an immutableEvaluationof the appropriate type.voidOnlineEvaluator.observe(List<Prediction<T>> newPredictions) Records all the supplied predictions. -
Uses of Prediction in org.tribuo.evaluation.metrics
Methods in org.tribuo.evaluation.metrics that return types with arguments of type PredictionModifier and TypeMethodDescriptionList<Prediction<T>> MetricContext.getPredictions()Gets the predictions used by this context.Method parameters in org.tribuo.evaluation.metrics with type arguments of type PredictionModifier and TypeMethodDescriptionEvaluationMetric.createContext(Model<T> model, List<Prediction<T>> predictions) Creates the context this metric uses to compute it's value.Constructor parameters in org.tribuo.evaluation.metrics with type arguments of type PredictionModifierConstructorDescriptionprotectedMetricContext(Model<T> model, List<Prediction<T>> predictions) Constructs a metric context.protectedMetricContext(SequenceModel<T> model, List<Prediction<T>> predictions) Constructs a metric context for a sequence model. -
Uses of Prediction in org.tribuo.sequence
Methods in org.tribuo.sequence that return types with arguments of type PredictionModifier and TypeMethodDescriptionList<Prediction<T>> IndependentSequenceModel.predict(SequenceExample<T> example) List<List<Prediction<T>>> SequenceModel.predict(Iterable<SequenceExample<T>> examples) Uses the model to predict the output for multiple examples.List<List<Prediction<T>>> SequenceModel.predict(SequenceDataset<T> examples) Uses the model to predict the labels for multiple examples contained in a data set.abstract List<Prediction<T>> SequenceModel.predict(SequenceExample<T> example) Uses the model to predict the output for a single example.Method parameters in org.tribuo.sequence with type arguments of type PredictionModifier and TypeMethodDescriptionprotected abstract CAbstractSequenceEvaluator.createContext(SequenceModel<T> model, List<List<Prediction<T>>> predictions) Create the context needed for evaluation.final EAbstractSequenceEvaluator.evaluate(SequenceModel<T> model, List<List<Prediction<T>>> predictions, DataProvenance dataProvenance) Produces an evaluation for the supplied model and predictions by aggregating the appropriate statistics.SequenceEvaluator.evaluate(SequenceModel<T> model, List<List<Prediction<T>>> predictions, DataProvenance dataProvenance) Evaluates the supplied model and predictions by aggregating the appropriate statistics.SequenceModel.toMaxLabels(List<Prediction<T>> predictions) Extracts a list of the predicted outputs from the list of prediction objects. -
Uses of Prediction in org.tribuo.transform
Methods in org.tribuo.transform that return PredictionMethods in org.tribuo.transform that return types with arguments of type Prediction