public static class ModelMetricsClustering.MetricBuilderClustering extends ModelMetricsUnsupervised.MetricBuilderUnsupervised
Modifier and Type | Field and Description |
---|---|
long[] |
_size |
double[] |
_within_sumsqe |
Constructor and Description |
---|
ModelMetricsClustering.MetricBuilderClustering(int ncol,
int nclust) |
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[] preds,
float[] dataRow,
Model m) |
void |
reduce(ModelMetrics.MetricBuilder mb) |
perRow, postGlobal, weightedSigma
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonString, write, writeExternal, writeJSON
public ModelMetricsClustering.MetricBuilderClustering(int ncol, int nclust)
public double[] perRow(double[] preds, float[] dataRow, Model m)
perRow
in class ModelMetrics.MetricBuilder
public void reduce(ModelMetrics.MetricBuilder mb)
reduce
in class ModelMetrics.MetricBuilder
public ModelMetrics makeModelMetrics(Model m, Frame f, Frame adaptedFrame, Frame preds)
ModelMetrics.MetricBuilder
makeModelMetrics
in class ModelMetrics.MetricBuilder
m
- Modelf
- Scored FrameadaptedFrame
- Adapted Framepreds
- Predictions of m on f (optional) @return Filled Model Metrics object