public abstract static class ModelMetrics.MetricBuilder<T extends ModelMetrics.MetricBuilder<T>> extends Iced
perRow
method is called once-per-scored-row, and
the reduce
method called once per MRTask.reduce, and the <init>
called once per MRTask.map.Modifier and Type | Field and Description |
---|---|
long |
_count |
double |
_sumsqe |
double |
_wcount |
double[] |
_work |
double |
_wY |
double |
_wYY |
Constructor and Description |
---|
ModelMetrics.MetricBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract ModelMetrics |
makeModelMetrics(Model m,
Frame f,
Frame adaptedFrame,
Frame preds)
Having computed a MetricBuilder, this method fills in a ModelMetrics
|
double[] |
perRow(double[] ds,
float[] yact,
double weight,
double offset,
Model m) |
abstract double[] |
perRow(double[] ds,
float[] yact,
Model m) |
void |
postGlobal() |
void |
reduce(T mb) |
double |
weightedSigma() |
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonString, write, writeExternal, writeJSON
public transient double[] _work
public double _sumsqe
public long _count
public double _wcount
public double _wY
public double _wYY
public double weightedSigma()
public abstract double[] perRow(double[] ds, float[] yact, Model m)
public double[] perRow(double[] ds, float[] yact, double weight, double offset, Model m)
public void reduce(T mb)
public void postGlobal()
public abstract ModelMetrics makeModelMetrics(Model m, Frame f, Frame adaptedFrame, Frame preds)
m
- Modelf
- Scored FrameadaptedFrame
- Adapted Framepreds
- Predictions of m on f (optional) @return Filled Model Metrics object