aboutsummaryrefslogtreecommitdiff
path: root/mllib
diff options
context:
space:
mode:
authorAndrew Or <andrewor14@gmail.com>2014-04-21 22:24:44 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-04-21 22:24:44 -0700
commitb3e5366f696c463f1c2f033b0d5c7365e5d6b0f8 (patch)
treecf3c39aca6fc73c8141aca794d853951613d63cd /mllib
parentfc7838470465474f777bd17791c1bb5f9c348521 (diff)
downloadspark-b3e5366f696c463f1c2f033b0d5c7365e5d6b0f8.tar.gz
spark-b3e5366f696c463f1c2f033b0d5c7365e5d6b0f8.tar.bz2
spark-b3e5366f696c463f1c2f033b0d5c7365e5d6b0f8.zip
[Fix #274] Document + fix annotation usages
... so that we don't follow an unspoken set of forbidden rules for adding **@AlphaComponent**, **@DeveloperApi**, and **@Experimental** annotations in the code. In addition, this PR (1) removes unnecessary `:: * ::` tags, (2) adds missing `:: * ::` tags, and (3) removes annotations for internal APIs. Author: Andrew Or <andrewor14@gmail.com> Closes #470 from andrewor14/annotations-fix and squashes the following commits: 92a7f42 [Andrew Or] Document + fix annotation usages
Diffstat (limited to 'mllib')
-rw-r--r--mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeans.scala6
-rw-r--r--mllib/src/main/scala/org/apache/spark/mllib/regression/RegressionModel.scala3
2 files changed, 3 insertions, 6 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 90cf8525df..dee9ef07e4 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
@@ -391,9 +391,9 @@ object KMeans {
* Returns the squared Euclidean distance between two vectors computed by
* [[org.apache.spark.mllib.util.MLUtils#fastSquaredDistance]].
*/
- private[clustering]
- def fastSquaredDistance(v1: BreezeVectorWithNorm, v2: BreezeVectorWithNorm)
- : Double = {
+ private[clustering] def fastSquaredDistance(
+ v1: BreezeVectorWithNorm,
+ v2: BreezeVectorWithNorm): Double = {
MLUtils.fastSquaredDistance(v1.vector, v1.norm, v2.vector, v2.norm)
}
diff --git a/mllib/src/main/scala/org/apache/spark/mllib/regression/RegressionModel.scala b/mllib/src/main/scala/org/apache/spark/mllib/regression/RegressionModel.scala
index 027305aa78..b27e158b43 100644
--- a/mllib/src/main/scala/org/apache/spark/mllib/regression/RegressionModel.scala
+++ b/mllib/src/main/scala/org/apache/spark/mllib/regression/RegressionModel.scala
@@ -21,9 +21,6 @@ import org.apache.spark.rdd.RDD
import org.apache.spark.mllib.linalg.Vector
import org.apache.spark.annotation.Experimental
-/**
- * :: Experimental ::
- */
@Experimental
trait RegressionModel extends Serializable {
/**