public class ModelMetrics extends Keyed<ModelMetrics>
Modifier and Type | Class and Description |
---|---|
static class |
ModelMetrics.MetricBuilder<T extends ModelMetrics.MetricBuilder<T>>
Class used to compute AUCs, CMs & HRs "on the fly" during other passes
over Big Data.
|
Keyed.BinarySerializer<X extends Keyed>
Modifier and Type | Field and Description |
---|---|
java.lang.String |
_description |
double |
_MSE |
long |
_scoring_time |
_key, EMPTY_KEY_LIST
Constructor and Description |
---|
ModelMetrics(Model model,
Frame frame,
double MSE,
java.lang.String desc) |
Modifier and Type | Method and Description |
---|---|
AUC2 |
auc() |
static Key<ModelMetrics> |
buildKey(Model model,
Frame frame) |
static TwoDimTable |
calcVarImp(double[] rel_imp,
java.lang.String[] coef_names) |
static TwoDimTable |
calcVarImp(double[] rel_imp,
java.lang.String[] coef_names,
java.lang.String table_header,
java.lang.String[] col_headers) |
static TwoDimTable |
calcVarImp(float[] rel_imp,
java.lang.String[] coef_names) |
static TwoDimTable |
calcVarImp(VarImp vi) |
protected long |
checksum_impl()
High-quality 64-bit checksum of the content of the
object.
|
ConfusionMatrix |
cm() |
Frame |
frame() |
static ModelMetrics |
getFromDKV(Model model,
Frame frame) |
float[] |
hr() |
boolean |
isForFrame(Frame f) |
boolean |
isForModel(Model m) |
Model |
model() |
double |
mse() |
checksum, getBinarySerializer, getPublishedKeys, remove_impl, remove, remove, remove, remove
clone, frozenType, read_impl, read, readExternal, readJSON_impl, readJSON, toJsonString, write_impl, write, writeExternal, writeHTML_impl, writeHTML, writeJSON_impl, writeJSON
public java.lang.String _description
public final long _scoring_time
public final double _MSE
public Model model()
public Frame frame()
public double mse()
public ConfusionMatrix cm()
public float[] hr()
public AUC2 auc()
public static TwoDimTable calcVarImp(VarImp vi)
public static TwoDimTable calcVarImp(float[] rel_imp, java.lang.String[] coef_names)
public static TwoDimTable calcVarImp(double[] rel_imp, java.lang.String[] coef_names)
public static TwoDimTable calcVarImp(double[] rel_imp, java.lang.String[] coef_names, java.lang.String table_header, java.lang.String[] col_headers)
public static Key<ModelMetrics> buildKey(Model model, Frame frame)
public boolean isForModel(Model m)
public boolean isForFrame(Frame f)
public static ModelMetrics getFromDKV(Model model, Frame frame)
protected long checksum_impl()
Keyed
checksum_impl
in class Keyed<ModelMetrics>