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 |
Constructor and Description |
---|
KMeans2.KMeans2Model(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, getPrediction, getPrediction, isClassifier, mse, nclasses, responseName, score, score, score, score, score, testJavaScoring, toJava, toJava, toJavaDefaultMaxIters, toJavaInit, toJavaInit, toJavaPredictBody, toJavaSuper, varimp
delete_and_lock, delete, delete, delete, delete, read_lock, read_lock, unlock, update, write_lock
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
public 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.Progress
protected float[] score0(Chunk[] chunks, int rowInChunk, double[] tmp, float[] preds)
Model
protected float[] score0(double[] data, float[] preds)
Model
public Futures delete_impl(Futures fs)
delete_impl
in class Model