hex
Class KMeansModel
java.lang.Object
water.Iced
water.OldModel
hex.KMeansModel
- All Implemented Interfaces:
- java.lang.Cloneable, Freezable, Job.Progress
public class KMeansModel
- extends OldModel
- implements Job.Progress
Methods inherited from class water.OldModel |
adapt, adapt, columnMapping, delete, fromJson, identityMap, isCompatible, isCompatible, isCompatible, response, responseName, score, score |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final java.lang.String NAME
_clusters
public double[][] _clusters
_error
public double _error
_iteration
public int _iteration
_initialization
public KMeans.Initialization _initialization
_maxIter
public int _maxIter
_randSeed
public long _randSeed
_normalized
public boolean _normalized
KMeansModel
public KMeansModel(Key selfKey,
int[] cols,
Key dataKey)
progress
public float progress()
- Specified by:
progress
in interface Job.Progress
columnFilter
public boolean columnFilter(ValueArray.Column C)
- Overrides:
columnFilter
in class OldModel
toJson
public com.google.gson.JsonObject toJson()
- Overrides:
toJson
in class OldModel
clusters
public double[][] clusters()
score0
protected double score0(double[] data)
- Single row scoring, on properly ordered data. Will return NaN if any data element contains a
NaN. Returns the cluster-number, which is mostly an internal value. Last data element refers to
the response variable, which is not used for k-means.
- Specified by:
score0
in class OldModel
score0
protected double score0(ValueArray data,
int row)
- Single row scoring, on a compatible ValueArray (when pushed throw the mapping)
- Overrides:
score0
in class OldModel
score0
protected double score0(ValueArray data,
AutoBuffer ab,
int row_in_chunk)
- Bulk scoring API, on a compatible ValueArray (when pushed throw the mapping)
- Overrides:
score0
in class OldModel
print
public final void print()