public class LogLoss extends java.lang.Object implements ProbabilisticClassificationMetric
| Modifier and Type | Field and Description |
|---|---|
static LogLoss |
instance
Default instance.
|
| Constructor and Description |
|---|
LogLoss() |
| Modifier and Type | Method and Description |
|---|---|
static double |
of(int[] truth,
double[] probability)
Calculates the Log Loss for binary classifier.
|
double |
score(int[] truth,
double[] probability)
Returns a score to measure the quality of classification.
|
java.lang.String |
toString() |
public static final LogLoss instance
public double score(int[] truth,
double[] probability)
ProbabilisticClassificationMetricscore in interface ProbabilisticClassificationMetrictruth - the true class labels.probability - The posterior probability of positive class.public static double of(int[] truth,
double[] probability)
truth - The sample labelsprobability - The posterior probability of positive class.public java.lang.String toString()
toString in class java.lang.Object