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) |
double[] |
perRow(double[] preds,
float[] dataRow,
Model m) |
void |
reduce(ModelMetricsClustering.MetricBuilderClustering mm) |
void |
reduceForCV(ModelMetricsClustering.MetricBuilderClustering mm)
Reduce the Metric builder clustering for CV without cluster statistics.
|
makeModelMetrics
cachePrediction, makePredictionCache, perRow, postGlobal, postGlobal, reduce, setCustomMetric, weightedSigma
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonBytes, 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 void reduceForCV(ModelMetricsClustering.MetricBuilderClustering mm)
reduceForCV
in class ModelMetrics.MetricBuilder<ModelMetricsClustering.MetricBuilderClustering>
mm
- metric builder to be reducedpublic ModelMetrics makeModelMetrics(Model m, Frame f)