|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwater.Iced
water.api.Constants
water.api.RequestStatics
water.api.RequestArguments
water.api.RequestQueries
water.api.RequestBuilders
water.api.Request
water.Request2
water.Job
hex.KMeans
public class KMeans
Scalable K-Means++ (KMeans||)
http://theory.stanford.edu/~sergei/papers/vldb12-kmpar.pdf
http://www.youtube.com/watch?v=cigXAxV3XcY
| Nested Class Summary | |
|---|---|
static class |
KMeans.Initialization
|
static class |
KMeans.Lloyds
|
static class |
KMeans.Sampler
|
static class |
KMeans.Sqr
|
| Nested classes/interfaces inherited from class water.Job |
|---|
Job.ChunkProgress, Job.ChunkProgressJob, Job.ColumnsJob, Job.Fail, Job.FrameJob, Job.HexJob, Job.ModelJob, Job.Progress, Job.ProgressMonitor, Job.ValidatedJob |
| Nested classes/interfaces inherited from class water.Request2 |
|---|
Request2.ColumnSelect, Request2.Dependent, Request2.DoClassBoolean, Request2.MultiVecSelect, Request2.MultiVecSelectType, Request2.TypeaheadKey, Request2.VecClassSelect, Request2.VecSelect |
| Nested classes/interfaces inherited from class water.api.Request |
|---|
Request.API, Request.Default, Request.Filter |
| Nested classes/interfaces inherited from class water.api.RequestStatics |
|---|
RequestStatics.RequestType |
| Nested classes/interfaces inherited from class water.api.Constants |
|---|
Constants.Extensions, Constants.Schemes, Constants.Suffixes |
| Field Summary | |
|---|---|
static java.lang.String |
KEY_PREFIX
|
| Fields inherited from class water.Job |
|---|
_fjtask, CANCELLED_END_TIME, description, destination_key, DOC_FIELDS, end_time, exception, job_key, start_time |
| Fields inherited from class water.Request2 |
|---|
response_info |
| Fields inherited from class water.api.Request |
|---|
_requestHelp, SUPPORTS_ONLY_V1, SUPPORTS_ONLY_V2, SUPPORTS_V1_V2 |
| Fields inherited from class water.api.RequestBuilders |
|---|
ARRAY_BUILDER, ARRAY_HEADER_ROW_BUILDER, ARRAY_ROW_BUILDER, ARRAY_ROW_ELEMENT_BUILDER, ARRAY_ROW_SINGLECOL_BUILDER, ELEMENT_BUILDER, GSON_BUILDER, OBJECT_BUILDER, ROOT_OBJECT |
| Fields inherited from class water.api.RequestQueries |
|---|
_queryHtml |
| Fields inherited from class water.api.RequestArguments |
|---|
_arguments |
| Constructor Summary | |
|---|---|
KMeans()
|
|
| Method Summary | |
|---|---|
static hex.KMeans.ClusterDist |
closest(double[][] clusters,
double[] point,
hex.KMeans.ClusterDist cd)
|
static hex.KMeans.ClusterDist |
closest(double[][] clusters,
double[] point,
hex.KMeans.ClusterDist cd,
int N)
|
static double[] |
datad(ValueArray va,
AutoBuffer bits,
int row,
int[] cols,
boolean normalize,
double[] res)
|
static Key |
makeKey()
|
static double |
minSqr(double[][] clusters,
double[] point,
hex.KMeans.ClusterDist cd)
|
static double |
minSqr(double[][] clusters,
double[] point,
hex.KMeans.ClusterDist cd,
int N)
|
static double[][] |
recluster(double[][] points,
int k,
java.util.Random rand,
KMeans.Initialization init)
|
static KMeans |
start(Key dest,
ValueArray va,
int k,
KMeans.Initialization init,
int maxIter,
long randSeed,
boolean normalize,
int... cols)
|
| Methods inherited from class water.Job |
|---|
all, cancel, cancel, cancel, cancel, cancelled, cancelled, checkIdx, defaultDestKey, defaultJobKey, dest, done, exec, findJob, findJobByDest, fork, get, gridParallelism, init, invoke, logStart, onCancelled, progress, redirect, remove, runTimeMs, self, serve, speedDescription, speedValue, start, waitUntilJobEnded, waitUntilJobEnded |
| Methods inherited from class water.Request2 |
|---|
create, fillResponseInfo, input, registered, serveGrid, set, split, superServeGrid, supportedVersions |
| Methods inherited from class water.api.Request |
|---|
addToNavbar, addToNavbar, DocExampleFail, DocExampleSucc, href, href, hrefType, HTMLHelp, htmlTemplate, initializeNavBar, initializeNavBar, log, mapTypeahead, ReSTHelp, serve, toDocGET, toHTML, wrap, wrap, wrap, writeJSONFields |
| Methods inherited from class water.api.RequestBuilders |
|---|
build, buildJSONResponseBox, buildResponseHeader, name |
| Methods inherited from class water.api.RequestQueries |
|---|
buildQuery, checkArguments, queryArgumentValueSet |
| Methods inherited from class water.api.RequestArguments |
|---|
arguments, argumentsToJson, frameColumnNameToIndex, vaCategoryNames, vaCategoryNames, vaColumnNameToIndex |
| Methods inherited from class water.api.RequestStatics |
|---|
checkJsonName, encodeRedirectArgs, JSON2HTML, jsonError, requestName, Str2JSON |
| Methods inherited from class water.Iced |
|---|
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String KEY_PREFIX
| Constructor Detail |
|---|
public KMeans()
| Method Detail |
|---|
public static final Key makeKey()
public static KMeans start(Key dest,
ValueArray va,
int k,
KMeans.Initialization init,
int maxIter,
long randSeed,
boolean normalize,
int... cols)
public static hex.KMeans.ClusterDist closest(double[][] clusters,
double[] point,
hex.KMeans.ClusterDist cd)
public static double minSqr(double[][] clusters,
double[] point,
hex.KMeans.ClusterDist cd)
public static double minSqr(double[][] clusters,
double[] point,
hex.KMeans.ClusterDist cd,
int N)
public static hex.KMeans.ClusterDist closest(double[][] clusters,
double[] point,
hex.KMeans.ClusterDist cd,
int N)
public static double[][] recluster(double[][] points,
int k,
java.util.Random rand,
KMeans.Initialization init)
public static double[] datad(ValueArray va,
AutoBuffer bits,
int row,
int[] cols,
boolean normalize,
double[] res)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||