Skip to content

Commit

Permalink
More documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
freeman-lab committed Oct 25, 2014
1 parent 9facbe3 commit ea9877c
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ import org.apache.spark.streaming.StreamingContext._
* This decay fraction can be specified in units of 'points' or 'batches'.
* if 'batches', behavior will be independent of the number of points per batch;
* if 'points', the expected number of points per batch must be specified.
*
* Use a builder pattern to construct a streaming KMeans analysis
* in an application, like:
*
* val model = new StreamingKMeans()
* .setDecayFactor(0.5)
* .setK(3)
* .setRandomCenters(5)
* .trainOn(DStream)
*
*/
@DeveloperApi
class StreamingKMeansModel(
Expand Down

0 comments on commit ea9877c

Please sign in to comment.