aboutsummaryrefslogtreecommitdiff
path: root/mllib/src/main/scala/org
diff options
context:
space:
mode:
Diffstat (limited to 'mllib/src/main/scala/org')
-rw-r--r--mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeans.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeans.scala b/mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeans.scala
index 7168aac32c..2895db7c90 100644
--- a/mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeans.scala
+++ b/mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeans.scala
@@ -107,7 +107,7 @@ class KMeans private (
* Number of runs of the algorithm to execute in parallel.
*/
@Since("1.4.0")
- @Experimental
+ @deprecated("Support for runs is deprecated. This param will have no effect in 1.7.0.", "1.6.0")
def getRuns: Int = runs
/**
@@ -117,7 +117,7 @@ class KMeans private (
* return the best clustering found over any run. Default: 1.
*/
@Since("0.8.0")
- @Experimental
+ @deprecated("Support for runs is deprecated. This param will have no effect in 1.7.0.", "1.6.0")
def setRuns(runs: Int): this.type = {
if (runs <= 0) {
throw new IllegalArgumentException("Number of runs must be positive")