Modifier and Type | Class and Description |
---|---|
static class |
LabelEvaluationUtil.PRCurve
Stores the Precision-Recall curve as three arrays: the precisions, the recalls,
and the thresholds associated with those values.
|
static class |
LabelEvaluationUtil.ROC
Stores the ROC curve as three arrays: the false positive rate, the true positive rate,
and the thresholds associated with those rates.
|
Modifier and Type | Method and Description |
---|---|
static double |
averagedPrecision(boolean[] yPos,
double[] yScore)
Summarises a Precision-Recall Curve by taking the weighted mean of the
precisions at a given threshold, where the weight is the recall achieved at
that threshold.
|
static double |
binaryAUCROC(boolean[] yPos,
double[] yScore)
Calculates the area under the receiver operator characteristic curve,
i.e., the AUC of the ROC curve.
|
static LabelEvaluationUtil.PRCurve |
generatePRCurve(boolean[] yPos,
double[] yScore)
Calculates the Precision Recall curve for a single label.
|
static LabelEvaluationUtil.ROC |
generateROCCurve(boolean[] yPos,
double[] yScore)
Calculates the binary ROC for a single label.
|
public static double averagedPrecision(boolean[] yPos, double[] yScore)
yPos
- Each element is true if the label was from the positive class.yScore
- Each element is the score of the positive class.public static LabelEvaluationUtil.PRCurve generatePRCurve(boolean[] yPos, double[] yScore)
yPos
- Each element is true if the label was from the positive class.yScore
- Each element is the score of the positive class.public static double binaryAUCROC(boolean[] yPos, double[] yScore)
yPos
- Is the associated index a positive label.yScore
- The score of the positive class.public static LabelEvaluationUtil.ROC generateROCCurve(boolean[] yPos, double[] yScore)
yPos
- Each element is true if the label was from the positive class.yScore
- Each element is the score of the positive class.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.