Modifier and Type | Field and Description |
---|---|
double |
_aic |
long |
_caseCount |
ConfusionMatrix[] |
_cm |
double |
_deviance |
double |
_err |
double[] |
_fprs |
Key[] |
_modelKeys |
long |
_n |
double |
_nullDeviance |
double[] |
_tprs |
int |
_xvalIterations |
static java.lang.String |
KEY_PREFIX |
Constructor and Description |
---|
DGLM.GLMValidation() |
DGLM.GLMValidation(Key modelKey,
Key[] modelKeys,
ConfusionMatrix.ErrMetric m,
double[] thresholds,
long time) |
Modifier and Type | Method and Description |
---|---|
double |
AIC() |
double |
AUC() |
ConfusionMatrix |
bestCM() |
ConfusionMatrix |
bestCM(ConfusionMatrix.ErrMetric errM) |
double |
bestThreshold() |
double[] |
classError() |
long |
computationTime() |
protected void |
computeAUC()
Computes area under the ROC curve.
|
void |
computeBestThreshold(ConfusionMatrix.ErrMetric errM) |
Key |
dataKey() |
double |
err() |
int |
fold() |
Key |
modelKey() |
java.lang.Iterable<DGLM.GLMModel> |
models() |
com.google.gson.JsonObject |
toJson() |
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
public final Key[] _modelKeys
public static final java.lang.String KEY_PREFIX
public long _n
public int _xvalIterations
public long _caseCount
public double _aic
public double _deviance
public double _nullDeviance
public double _err
public ConfusionMatrix[] _cm
public double[] _tprs
public double[] _fprs
public DGLM.GLMValidation()
public DGLM.GLMValidation(Key modelKey, Key[] modelKeys, ConfusionMatrix.ErrMetric m, double[] thresholds, long time)
public final long computationTime()
public Key dataKey()
public Key modelKey()
public java.lang.Iterable<DGLM.GLMModel> models()
public int fold()
public ConfusionMatrix bestCM()
public double err()
public ConfusionMatrix bestCM(ConfusionMatrix.ErrMetric errM)
public double bestThreshold()
public void computeBestThreshold(ConfusionMatrix.ErrMetric errM)
public double[] classError()
public double AUC()
protected void computeAUC()
public com.google.gson.JsonObject toJson()
public double AIC()