Interface ISingleLabelClassification
-
- All Superinterfaces:
IPrediction
public interface ISingleLabelClassification extends IPrediction
Interface for classifier that predict a single label among a constant number. The convention is that labels are integers starting from 0 to n - 1 where n is the number of classes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Map<java.lang.Integer,java.lang.Double>getClassConfidence()java.util.Map<java.lang.Integer,java.lang.Double>getClassDistribution()intgetIntPrediction()java.lang.IntegergetLabelWithHighestProbability()default java.lang.IntegergetPrediction()doublegetProbabilityOfLabel(int label)-
Methods inherited from interface org.api4.java.ai.ml.core.evaluation.IPrediction
getProbabilityOfLabel
-
-
-
-
Method Detail
-
getPrediction
default java.lang.Integer getPrediction()
- Specified by:
getPredictionin interfaceIPrediction
-
getIntPrediction
int getIntPrediction()
-
getLabelWithHighestProbability
java.lang.Integer getLabelWithHighestProbability()
- Specified by:
getLabelWithHighestProbabilityin interfaceIPrediction
-
getClassDistribution
java.util.Map<java.lang.Integer,java.lang.Double> getClassDistribution()
- Specified by:
getClassDistributionin interfaceIPrediction
-
getClassConfidence
java.util.Map<java.lang.Integer,java.lang.Double> getClassConfidence()
- Specified by:
getClassConfidencein interfaceIPrediction
-
getProbabilityOfLabel
double getProbabilityOfLabel(int label)
-
-