Class MultiLabelClassification
- java.lang.Object
-
- ai.libs.jaicore.ml.core.evaluation.Prediction
-
- ai.libs.jaicore.ml.classification.multilabel.MultiLabelClassification
-
- All Implemented Interfaces:
org.api4.java.ai.ml.classification.multilabel.evaluation.IMultiLabelClassification,org.api4.java.ai.ml.core.evaluation.IPrediction
public class MultiLabelClassification extends Prediction implements org.api4.java.ai.ml.classification.multilabel.evaluation.IMultiLabelClassification
-
-
Constructor Summary
Constructors Constructor Description MultiLabelClassification(double[] predicted)MultiLabelClassification(double[] predicted, double threshold)MultiLabelClassification(double[] predicted, double[] threshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]getIrrelevantLabels(double threshold)double[]getPrediction()int[]getPrediction(double threshold)int[]getPrediction(double[] threshold)int[]getRelevantLabels(double threshold)int[]getThresholdedPrediction()-
Methods inherited from class ai.libs.jaicore.ml.core.evaluation.Prediction
getClassConfidence, getClassDistribution, getLabelWithHighestProbability, getProbabilityOfLabel
-
-
-
-
Method Detail
-
getPrediction
public double[] getPrediction()
- Specified by:
getPredictionin interfaceorg.api4.java.ai.ml.classification.multilabel.evaluation.IMultiLabelClassification- Specified by:
getPredictionin interfaceorg.api4.java.ai.ml.core.evaluation.IPrediction- Overrides:
getPredictionin classPrediction
-
getThresholdedPrediction
public int[] getThresholdedPrediction()
- Specified by:
getThresholdedPredictionin interfaceorg.api4.java.ai.ml.classification.multilabel.evaluation.IMultiLabelClassification
-
getPrediction
public int[] getPrediction(double threshold)
- Specified by:
getPredictionin interfaceorg.api4.java.ai.ml.classification.multilabel.evaluation.IMultiLabelClassification
-
getPrediction
public int[] getPrediction(double[] threshold)
- Specified by:
getPredictionin interfaceorg.api4.java.ai.ml.classification.multilabel.evaluation.IMultiLabelClassification
-
getRelevantLabels
public int[] getRelevantLabels(double threshold)
- Specified by:
getRelevantLabelsin interfaceorg.api4.java.ai.ml.classification.multilabel.evaluation.IMultiLabelClassification
-
getIrrelevantLabels
public int[] getIrrelevantLabels(double threshold)
- Specified by:
getIrrelevantLabelsin interfaceorg.api4.java.ai.ml.classification.multilabel.evaluation.IMultiLabelClassification
-
-