public static class ModelMetricsMultinomial.MetricBuilderMultinomial<T extends ModelMetricsMultinomial.MetricBuilderMultinomial<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 |
---|
MetricBuilderMultinomial(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, setCustomMetric, weightedSigma
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonString, write, writeExternal, writeJSON
public MetricBuilderMultinomial(int nclasses, java.lang.String[] domain)
public double[] perRow(double[] ds, float[] yact, Model m)
perRow
in class ModelMetrics.MetricBuilder<T extends ModelMetricsMultinomial.MetricBuilderMultinomial<T>>
public double[] perRow(double[] ds, float[] yact, double w, double o, Model m)
perRow
in class ModelMetrics.MetricBuilder<T extends ModelMetricsMultinomial.MetricBuilderMultinomial<T>>
public void reduce(T mb)
reduce
in class ModelMetrics.MetricBuilder<T extends ModelMetricsMultinomial.MetricBuilderMultinomial<T>>
public ModelMetrics makeModelMetrics(Model m, Frame f, Frame adaptedFrame, Frame preds)
ModelMetrics.MetricBuilder
makeModelMetrics
in class ModelMetrics.MetricBuilder<T extends ModelMetricsMultinomial.MetricBuilderMultinomial<T>>
m
- Modelf
- Scored FrameadaptedFrame
- Adapted Framepreds
- Predictions of m on f (optional) @return Filled Model Metrics object