public class Metrics extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
examplesCount |
Constructor and Description |
---|
Metrics(int printScoreEveryNExamples,
ProgressiveValidation... validationMetrics) |
Modifier and Type | Method and Description |
---|---|
Map<String,Double> |
getScores() |
void |
printScores() |
static Metrics |
probabilityClassificationMetrics(int printEveryN)
Factory method for classification probability metrics
|
static Metrics |
regressionMetrics(int printEveryN)
Factory method for regression metrics
|
void |
updateScore(double prediction,
double actual) |
static Metrics |
zeroOneClassificationMetrics(int printEveryN,
double decisionThreshold)
Factory method for classification 1-0 metrics
|
public Metrics(int printScoreEveryNExamples, ProgressiveValidation... validationMetrics)
public static Metrics regressionMetrics(int printEveryN)
printEveryN
- print score every n examplepublic static Metrics zeroOneClassificationMetrics(int printEveryN, double decisionThreshold)
printEveryN
- print score every n exampledecisionThreshold
- threasold to decide whether prediction is positive or negativepublic static Metrics probabilityClassificationMetrics(int printEveryN)
printEveryN
- print score every n examplepublic void updateScore(double prediction, double actual)
public void printScores()
Copyright © 2017. All rights reserved.