public static class KMeans2.KMeans2Model extends Model implements Job.Progress
| Modifier and Type | Field and Description |
|---|---|
Key |
_clustersKey |
double |
between_cluster_SS |
double[] |
between_cluster_variances |
double[][] |
centers |
static DocGen.FieldDoc[] |
DOC_FIELDS |
int |
iterations |
int |
k |
int |
max_iter |
boolean |
normalized |
long[] |
size |
double |
total_SS |
double |
total_within_SS |
double[] |
within_cluster_variances |
_dataKey, _domains, _modelClassDist, _names, _priorClassDist| Constructor and Description |
|---|
KMeans2.KMeans2Model(KMeans2 params,
Key selfKey,
Key dataKey,
java.lang.String[] names,
java.lang.String[][] domains) |
| Modifier and Type | Method and Description |
|---|---|
Futures |
delete_impl(Futures fs)
Remove any Model internal Keys
|
float |
progress() |
protected float[] |
score0(Chunk[] chunks,
int rowInChunk,
double[] tmp,
float[] preds)
Bulk scoring API for one row.
|
protected float[] |
score0(double[] data,
float[] preds)
Subclasses implement the scoring logic.
|
adapt, classNames, cm, errStr, getDomainMapping, getDomainMapping, isClassifier, mse, nclasses, responseName, score, score, score, score, score, score, setModelClassDistribution, testJavaScoring, toJava, toJava, toJavaDefaultMaxIters, toJavaInit, toJavaInit, toJavaPredictBody, toJavaSuper, varimpdelete_and_lock, delete, delete, delete, delete, read_lock, read_lock, unlock, update, write_lockclone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFieldspublic static DocGen.FieldDoc[] DOC_FIELDS
public double[][] centers
public double total_within_SS
public double between_cluster_SS
public double total_SS
public int k
public long[] size
public boolean normalized
public int max_iter
public int iterations
public double[] within_cluster_variances
public double[] between_cluster_variances
public final Key _clustersKey
public float progress()
progress in interface Job.Progressprotected float[] score0(Chunk[] chunks, int rowInChunk, double[] tmp, float[] preds)
Modelprotected float[] score0(double[] data,
float[] preds)
Modelpublic Futures delete_impl(Futures fs)
delete_impl in class Model