See also

The hyper parameters defined via a builder pattern or streamingKMeans are:

setDecayFactor()setK()setRandomCenters(,)

Please refer to the Building a KMeans classifying system in Spark recipe in Chapter 8, Unsupervised Clustering with Apache Spark 2.0 for more details.

Get Apache Spark 2.x Machine Learning Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.