Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/8256#discussion_r37314832
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/clustering/StreamingKMeans.scala ---
@@ -70,22 +71,38 @@ class StreamingKMeansModel(
override val clusterCenters: Array[Vector],
val clusterWeights: Array[Double]) extends KMeansModel(clusterCenters)
with Logging {
- /** Perform a k-means update on a batch of data. */
+ /**
+ * Perform a k-means update on a batch of data.
+ * @since 1.2.0
+ */
def update(data: RDD[Vector], decayFactor: Double, timeUnit: String):
StreamingKMeansModel = {
- // find nearest cluster to each point
+ /**
+ * find nearest cluster to each point
+ * @since 1.2.0
+ */
val closest = data.map(point => (this.predict(point), (point, 1L)))
--- End diff --
Those are local variables or methods inside `update`. It is not necessary
to use JavaDoc and add since tags.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]