Skip to content

Commit

Permalink
Fixes to docs / examples
Browse files Browse the repository at this point in the history
  • Loading branch information
freeman-lab committed Nov 1, 2014
1 parent 078617c commit b2e5b4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/mllib-clustering.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ val numClusters = 2
val model = new StreamingKMeans()
.setK(numClusters)
.setDecayFactor(1.0)
.setRandomWeights(numDimensions)
.setRandomCenters(numDimensions, 0.0)

{% endhighlight %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ import org.apache.spark.util.random.XORShiftRandom
/**
* :: DeveloperApi ::
* StreamingKMeansModel extends MLlib's KMeansModel for streaming
* algorithms, so it can keep track of the number of points assigned
* to each cluster, and also update the model by doing a single iteration
* of the standard k-means algorithm.
* algorithms, so it can keep track of a continuously updated weight
* associated with each cluster, and also update the model by
* doing a single iteration of the standard k-means algorithm.
*
* The update algorithm uses the "mini-batch" KMeans rule,
* generalized to incorporate forgetfullness (i.e. decay).
Expand Down

0 comments on commit b2e5b4a

Please sign in to comment.