public static class ModelMetricsOrdinal.MetricBuilderOrdinal<T extends ModelMetricsOrdinal.MetricBuilderOrdinal<T>> extends ModelMetricsSupervised.MetricBuilderSupervised<T>
Modifier and Type | Field and Description |
---|---|
double[] |
_priorDistribution |
_domain, _nclasses
_count, _customMetric, _sumsqe, _wcount, _work, _wY, _wYY
Constructor and Description |
---|
MetricBuilderOrdinal(int nclasses,
java.lang.String[] domain) |
Modifier and Type | Method and Description |
---|---|
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 w,
double o,
Model m) |
double[] |
perRow(double[] ds,
float[] yact,
Model m) |
void |
reduce(T mb) |
cachePrediction, makePredictionCache, postGlobal, postGlobal, reduce, reduceForCV, setCustomMetric, weightedSigma
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonBytes, toJsonString, write, writeExternal, writeJSON
public MetricBuilderOrdinal(int nclasses, java.lang.String[] domain)
public double[] perRow(double[] ds, float[] yact, Model m)
perRow
in class ModelMetrics.MetricBuilder<T extends ModelMetricsOrdinal.MetricBuilderOrdinal<T>>
public double[] perRow(double[] ds, float[] yact, double w, double o, Model m)
perRow
in class ModelMetrics.MetricBuilder<T extends ModelMetricsOrdinal.MetricBuilderOrdinal<T>>
public void reduce(T mb)
reduce
in class ModelMetrics.MetricBuilder<T extends ModelMetricsOrdinal.MetricBuilderOrdinal<T>>
public ModelMetrics makeModelMetrics(Model m, Frame f, Frame adaptedFrame, Frame preds)
ModelMetrics.MetricBuilder
makeModelMetrics
in class ModelMetrics.MetricBuilder<T extends ModelMetricsOrdinal.MetricBuilderOrdinal<T>>
m
- Modelf
- Scored FrameadaptedFrame
- Adapted Framepreds
- Predictions of m on f (optional) @return Filled Model Metrics object