public class ScoreKeeper extends Iced
Modifier and Type | Class and Description |
---|---|
static class |
ScoreKeeper.StoppingMetric |
Modifier and Type | Field and Description |
---|---|
double |
_AUC |
double |
_classError |
float[] |
_hitratio |
double |
_lift |
double |
_logloss |
double |
_mae |
double |
_mean_per_class_error |
double |
_mean_residual_deviance |
double |
_mse |
double |
_rmse |
double |
_rmsle |
Constructor and Description |
---|
ScoreKeeper() |
ScoreKeeper(double mse)
Keep score of mean squared error only.
|
ScoreKeeper(Model m)
Keep score for a model using its validation_metrics if available and training_metrics if not.
|
ScoreKeeper(ModelMetrics mm)
Keep score of a given ModelMetrics.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Comparator<ScoreKeeper> |
comparator(ScoreKeeper.StoppingMetric criterion) |
boolean |
equals(java.lang.Object that)
Compare this ScoreKeeper with that ScoreKeeper
|
void |
fillFrom(ModelMetrics m) |
boolean |
isEmpty() |
static boolean |
moreIsBetter(ScoreKeeper.StoppingMetric criterion) |
static boolean |
stopEarly(ScoreKeeper[] sk,
int k,
boolean classification,
ScoreKeeper.StoppingMetric criterion,
double rel_improvement,
java.lang.String what,
boolean verbose)
Based on the given array of ScoreKeeper and stopping criteria should we stop early?
|
java.lang.String |
toString() |
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonString, write, writeExternal, writeJSON
public double _mean_residual_deviance
public double _mse
public double _rmse
public double _mae
public double _rmsle
public double _logloss
public double _AUC
public double _classError
public double _mean_per_class_error
public float[] _hitratio
public double _lift
public ScoreKeeper()
public ScoreKeeper(double mse)
mse
- public ScoreKeeper(ModelMetrics mm)
mm
- ModelMetrics to keep track of.public ScoreKeeper(Model m)
m
- model for which we should keep scorepublic boolean isEmpty()
public void fillFrom(ModelMetrics m)
public static boolean moreIsBetter(ScoreKeeper.StoppingMetric criterion)
public static boolean stopEarly(ScoreKeeper[] sk, int k, boolean classification, ScoreKeeper.StoppingMetric criterion, double rel_improvement, java.lang.String what, boolean verbose)
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
that
- public static java.util.Comparator<ScoreKeeper> comparator(ScoreKeeper.StoppingMetric criterion)
public java.lang.String toString()
toString
in class java.lang.Object