public static class ModelMetricsClustering.MetricBuilderClustering extends ModelMetricsUnsupervised.MetricBuilderUnsupervised<ModelMetricsClustering.MetricBuilderClustering>
Modifier and Type | Field and Description |
---|---|
long[] |
_size |
double[] |
_within_sumsqe |
_count, _customMetric, _sumsqe, _wcount, _work, _wY, _wYY
Constructor and Description |
---|
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) |
cachePrediction, makePredictionCache, perRow, postGlobal, postGlobal, setCustomMetric, weightedSigma
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonString, write, writeExternal, writeJSON
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