public static class ModelMetricsClustering.MetricBuilderClustering extends ModelMetricsUnsupervised.MetricBuilderUnsupervised<ModelMetricsClustering.MetricBuilderClustering>
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(ModelMetricsClustering.MetricBuilderClustering mm) |
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<ModelMetricsClustering.MetricBuilderClustering>
public void reduce(ModelMetricsClustering.MetricBuilderClustering mm)
reduce
in class ModelMetrics.MetricBuilder<ModelMetricsClustering.MetricBuilderClustering>
public ModelMetrics makeModelMetrics(Model m, Frame f, Frame adaptedFrame, Frame preds)
ModelMetrics.MetricBuilder
makeModelMetrics
in class ModelMetrics.MetricBuilder<ModelMetricsClustering.MetricBuilderClustering>
m
- Modelf
- Scored FrameadaptedFrame
- Adapted Framepreds
- Predictions of m on f (optional) @return Filled Model Metrics object