Package pyspark :: Package mllib :: Module clustering :: Class KMeans
[frames] | no frames]

Class KMeans

source code

object --+
         |
        KMeans

Instance Methods

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
 
train(cls, data, k, maxIterations=100, runs=1, initializationMode="k-means||")
Train a k-means clustering model.
source code
Properties

Inherited from object: __class__