Uses of Class
org.tribuo.multilabel.MultiLabel
Packages that use MultiLabel
Package
Description
Provides classes and infrastructure for working with multi-label classification problems.
Evaluation classes for multi-label classification using
MultiLabel
.Provides a multi-label data generator for testing implementations.
-
Uses of MultiLabel in org.tribuo.multilabel
Classes in org.tribuo.multilabel that implement interfaces with type arguments of type MultiLabelModifier and TypeClassDescriptionclass
An ImmutableOutputInfo for working with multi-label tasks.class
A class for multi-label classification.final class
A factory for generating MultiLabel objects and their associated OutputInfo and Evaluator objects.class
The base class for information aboutMultiLabel
outputs.class
A MutableOutputInfo for working with multi-label tasks.Fields in org.tribuo.multilabel declared as MultiLabelFields in org.tribuo.multilabel with type parameters of type MultiLabelMethods in org.tribuo.multilabel that return MultiLabelModifier and TypeMethodDescriptionMultiLabel.copy()
static MultiLabel
MultiLabel.createFromPairList
(List<com.oracle.labs.mlrg.olcut.util.Pair<String, Boolean>> dimensions) Creates a MultiLabel from a list of dimensions.<V> MultiLabel
MultiLabelFactory.generateOutput
(V label) Parses the MultiLabel value either by toStringing the input and callingparseString(java.lang.String)
or if it's aCollection
iterating over the elements calling toString on each element in turn and usingparseElement(java.lang.String)
.ImmutableMultiLabelInfo.getOutput
(int id) MultiLabelFactory.getUnknownOutput()
static MultiLabel
MultiLabel.parseString
(String s) Parses a string of the form: dimension-name=output,...,dimension-name=output where output must be readable byBoolean.parseBoolean(String)
.static MultiLabel
MultiLabel.parseString
(String s, char splitChar) Parses a string of the form:Methods in org.tribuo.multilabel that return types with arguments of type MultiLabelModifier and TypeMethodDescriptionMultiLabelFactory.constructInfoForExternalModel
(Map<MultiLabel, Integer> mapping) MultiLabelInfo.generateImmutableOutputInfo()
MultiLabelFactory.generateInfo()
MultiLabelInfo.generateMutableOutputInfo()
ImmutableMultiLabelInfo.getDomain()
MultiLabelInfo.getDomain()
Returns a set of MultiLabel, where each has a single Label inside it.MultiLabelFactory.getEvaluator()
Iterator
<com.oracle.labs.mlrg.olcut.util.Pair<Integer, MultiLabel>> ImmutableMultiLabelInfo.iterator()
Methods in org.tribuo.multilabel with parameters of type MultiLabelModifier and TypeMethodDescriptionboolean
MultiLabel.fullEquals
(MultiLabel o) int
ImmutableMultiLabelInfo.getID
(MultiLabel output) void
MutableMultiLabelInfo.observe
(MultiLabel output) Throws IllegalStateException if the MultiLabel contains a Label which has a "," in it.Method parameters in org.tribuo.multilabel with type arguments of type MultiLabelModifier and TypeMethodDescriptionMultiLabelFactory.constructInfoForExternalModel
(Map<MultiLabel, Integer> mapping) -
Uses of MultiLabel in org.tribuo.multilabel.baseline
Subclasses with type arguments of type MultiLabel in org.tribuo.multilabel.baselineModifier and TypeClassDescriptionclass
AModel
which wraps n binary models, where n is the size of the MultiLabel domain.Classes in org.tribuo.multilabel.baseline that implement interfaces with type arguments of type MultiLabelModifier and TypeClassDescriptionclass
Methods in org.tribuo.multilabel.baseline that return types with arguments of type MultiLabelModifier and TypeMethodDescriptionIndependentMultiLabelModel.getExcuse
(Example<MultiLabel> example) IndependentMultiLabelModel.predict
(Example<MultiLabel> example) IndependentMultiLabelTrainer.train
(Dataset<MultiLabel> examples, Map<String, com.oracle.labs.mlrg.olcut.provenance.Provenance> runProvenance) Method parameters in org.tribuo.multilabel.baseline with type arguments of type MultiLabelModifier and TypeMethodDescriptionIndependentMultiLabelModel.getExcuse
(Example<MultiLabel> example) IndependentMultiLabelModel.predict
(Example<MultiLabel> example) IndependentMultiLabelTrainer.train
(Dataset<MultiLabel> examples, Map<String, com.oracle.labs.mlrg.olcut.provenance.Provenance> runProvenance) -
Uses of MultiLabel in org.tribuo.multilabel.evaluation
Subclasses with type arguments of type MultiLabel in org.tribuo.multilabel.evaluationSubinterfaces with type arguments of type MultiLabel in org.tribuo.multilabel.evaluationClasses in org.tribuo.multilabel.evaluation that implement interfaces with type arguments of type MultiLabelModifier and TypeClassDescriptionfinal class
AConfusionMatrix
which acceptsMultiLabel
s.class
AEvaluationMetric
for evaluatingMultiLabel
problems.Methods in org.tribuo.multilabel.evaluation that return types with arguments of type MultiLabelModifier and TypeMethodDescriptionMultiLabelEvaluationImpl.asMap()
MultiLabelEvaluationImpl.getConfusionMatrix()
MultiLabelConfusionMatrix.getDomain()
BiFunction
<MetricTarget<MultiLabel>, org.tribuo.multilabel.evaluation.MultiLabelMetric.Context, Double> MultiLabelMetrics.getImpl()
MultiLabelEvaluationImpl.getPredictions()
MultiLabelMetric.getTarget()
Methods in org.tribuo.multilabel.evaluation with parameters of type MultiLabelModifier and TypeMethodDescriptiondouble
MultiLabelConfusionMatrix.confusion
(MultiLabel predicted, MultiLabel truth) double
MultiLabelEvaluationImpl.confusion
(MultiLabel predicted, MultiLabel truth) double
MultiLabelEvaluationImpl.f1
(MultiLabel label) double
MultiLabelConfusionMatrix.fn
(MultiLabel cls) double
MultiLabelEvaluationImpl.fn
(MultiLabel label) double
MultiLabelConfusionMatrix.fp
(MultiLabel cls) double
MultiLabelEvaluationImpl.fp
(MultiLabel label) double
MultiLabelEvaluationImpl.precision
(MultiLabel label) double
MultiLabelEvaluationImpl.recall
(MultiLabel label) double
MultiLabelConfusionMatrix.support
(MultiLabel cls) double
MultiLabelConfusionMatrix.tn
(MultiLabel cls) double
MultiLabelEvaluationImpl.tn
(MultiLabel label) double
MultiLabelConfusionMatrix.tp
(MultiLabel cls) double
MultiLabelEvaluationImpl.tp
(MultiLabel label) Method parameters in org.tribuo.multilabel.evaluation with type arguments of type MultiLabelModifier and TypeMethodDescriptionprotected org.tribuo.multilabel.evaluation.MultiLabelMetric.Context
MultiLabelEvaluator.createContext
(Model<MultiLabel> model, List<Prediction<MultiLabel>> predictions) protected org.tribuo.multilabel.evaluation.MultiLabelMetric.Context
MultiLabelEvaluator.createContext
(Model<MultiLabel> model, List<Prediction<MultiLabel>> predictions) org.tribuo.multilabel.evaluation.MultiLabelMetric.Context
MultiLabelMetric.createContext
(Model<MultiLabel> model, List<Prediction<MultiLabel>> predictions) org.tribuo.multilabel.evaluation.MultiLabelMetric.Context
MultiLabelMetric.createContext
(Model<MultiLabel> model, List<Prediction<MultiLabel>> predictions) protected MultiLabelEvaluation
MultiLabelEvaluator.createEvaluation
(org.tribuo.multilabel.evaluation.MultiLabelMetric.Context context, Map<MetricID<MultiLabel>, Double> results, EvaluationProvenance provenance) protected Set
<MultiLabelMetric> MultiLabelEvaluator.createMetrics
(Model<MultiLabel> model) MultiLabelMetrics.forTarget
(MetricTarget<MultiLabel> tgt) Constructor parameters in org.tribuo.multilabel.evaluation with type arguments of type MultiLabelModifierConstructorDescriptionMultiLabelConfusionMatrix
(Model<MultiLabel> model, List<Prediction<MultiLabel>> predictions) MultiLabelConfusionMatrix
(Model<MultiLabel> model, List<Prediction<MultiLabel>> predictions) MultiLabelMetric
(MetricTarget<MultiLabel> target, String name, BiFunction<MetricTarget<MultiLabel>, org.tribuo.multilabel.evaluation.MultiLabelMetric.Context, Double> impl) MultiLabelMetric
(MetricTarget<MultiLabel> target, String name, BiFunction<MetricTarget<MultiLabel>, org.tribuo.multilabel.evaluation.MultiLabelMetric.Context, Double> impl) -
Uses of MultiLabel in org.tribuo.multilabel.example
Methods in org.tribuo.multilabel.example that return types with arguments of type MultiLabelModifier and TypeMethodDescriptionstatic Example
<MultiLabel> MultiLabelDataGenerator.emptyExample()
Generates an example with no features.static com.oracle.labs.mlrg.olcut.util.Pair
<Dataset<MultiLabel>, Dataset<MultiLabel>> MultiLabelDataGenerator.generateDataset()
static com.oracle.labs.mlrg.olcut.util.Pair
<Dataset<MultiLabel>, Dataset<MultiLabel>> MultiLabelDataGenerator.generateDataset()
static Dataset
<MultiLabel> MultiLabelDataGenerator.generateTestData()
static Dataset
<MultiLabel> MultiLabelDataGenerator.generateTrainData()
static Example
<MultiLabel> MultiLabelDataGenerator.invalidSparseExample()
Generates an example with the feature ids 1,5,8, which does not intersect with the ids used elsewhere in this class.