public class KMeansModel extends OldModel implements Job.Progress
Modifier and Type | Class and Description |
---|---|
static class |
KMeansModel.KMeansApply |
static class |
KMeansModel.KMeansScore |
Modifier and Type | Field and Description |
---|---|
double |
_between_cluster_SS |
double[][] |
_clusters |
double |
_error |
KMeans.Initialization |
_initialization |
int |
_iteration |
int |
_maxIter |
boolean |
_normalized |
long |
_randSeed |
double |
_total_SS |
static java.lang.String |
NAME |
_dataKey, _va, DOC_FIELDS
Constructor and Description |
---|
KMeansModel(Key selfKey,
int[] cols,
Key dataKey) |
Modifier and Type | Method and Description |
---|---|
double[][] |
clusters() |
boolean |
columnFilter(ValueArray.Column C) |
void |
print() |
float |
progress() |
protected double |
score0(double[] data)
Single row scoring, on properly ordered data.
|
protected double |
score0(ValueArray data,
AutoBuffer ab,
int row_in_chunk)
Bulk scoring API, on a compatible ValueArray (when pushed throw the mapping)
|
protected double |
score0(ValueArray data,
int row)
Single row scoring, on a compatible ValueArray (when pushed throw the mapping)
|
com.google.gson.JsonObject |
toJson() |
adapt, adapt, columnMapping, delete_impl, errStr, fromJson, getThreshold, identityMap, isCompatible, isCompatible, isCompatible, response, responseName, score, score, score
delete_and_lock, delete, delete, delete, delete, is_unlocked, is_wlocked, read_lock, read_lock, unlock_all, unlock, update, write_lock
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
public static final java.lang.String NAME
public double[][] _clusters
public double _error
public double _between_cluster_SS
public double _total_SS
public int _iteration
public KMeans.Initialization _initialization
public int _maxIter
public long _randSeed
public boolean _normalized
public float progress()
progress
in interface Job.Progress
public boolean columnFilter(ValueArray.Column C)
columnFilter
in class OldModel
public double[][] clusters()
protected double score0(double[] data)
protected double score0(ValueArray data, int row)
protected double score0(ValueArray data, AutoBuffer ab, int row_in_chunk)
public final void print()