You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2018/01/17 23:17:04 UTC

spark git commit: [MINOR] Fix typos in ML scaladocs

Repository: spark
Updated Branches:
  refs/heads/master 45ad97df8 -> 7823d43ec


[MINOR] Fix typos in ML scaladocs

## What changes were proposed in this pull request?

Fixed some typos found in ML scaladocs

## How was this patch tested?

NA

Author: Bryan Cutler <cu...@gmail.com>

Closes #20300 from BryanCutler/ml-doc-typos-MINOR.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/7823d43e
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/7823d43e
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/7823d43e

Branch: refs/heads/master
Commit: 7823d43ec0e9c4b8284bb4529b0e624c43bc9bb7
Parents: 45ad97d
Author: Bryan Cutler <cu...@gmail.com>
Authored: Wed Jan 17 17:16:57 2018 -0600
Committer: Sean Owen <so...@cloudera.com>
Committed: Wed Jan 17 17:16:57 2018 -0600

----------------------------------------------------------------------
 mllib/src/main/scala/org/apache/spark/ml/stat/Summarizer.scala  | 2 +-
 .../scala/org/apache/spark/ml/tuning/TrainValidationSplit.scala | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/7823d43e/mllib/src/main/scala/org/apache/spark/ml/stat/Summarizer.scala
----------------------------------------------------------------------
diff --git a/mllib/src/main/scala/org/apache/spark/ml/stat/Summarizer.scala b/mllib/src/main/scala/org/apache/spark/ml/stat/Summarizer.scala
index 9bed74a..d40827e 100644
--- a/mllib/src/main/scala/org/apache/spark/ml/stat/Summarizer.scala
+++ b/mllib/src/main/scala/org/apache/spark/ml/stat/Summarizer.scala
@@ -75,7 +75,7 @@ sealed abstract class SummaryBuilder {
  *   val Row(meanVec) = meanDF.first()
  * }}}
  *
- * Note: Currently, the performance of this interface is about 2x~3x slower then using the RDD
+ * Note: Currently, the performance of this interface is about 2x~3x slower than using the RDD
  * interface.
  */
 @Experimental

http://git-wip-us.apache.org/repos/asf/spark/blob/7823d43e/mllib/src/main/scala/org/apache/spark/ml/tuning/TrainValidationSplit.scala
----------------------------------------------------------------------
diff --git a/mllib/src/main/scala/org/apache/spark/ml/tuning/TrainValidationSplit.scala b/mllib/src/main/scala/org/apache/spark/ml/tuning/TrainValidationSplit.scala
index 8826ef3..88ff0df 100644
--- a/mllib/src/main/scala/org/apache/spark/ml/tuning/TrainValidationSplit.scala
+++ b/mllib/src/main/scala/org/apache/spark/ml/tuning/TrainValidationSplit.scala
@@ -93,7 +93,7 @@ class TrainValidationSplit @Since("1.5.0") (@Since("1.5.0") override val uid: St
   def setSeed(value: Long): this.type = set(seed, value)
 
   /**
-   * Set the mamixum level of parallelism to evaluate models in parallel.
+   * Set the maximum level of parallelism to evaluate models in parallel.
    * Default is 1 for serial evaluation
    *
    * @group expertSetParam
@@ -112,7 +112,8 @@ class TrainValidationSplit @Since("1.5.0") (@Since("1.5.0") override val uid: St
    * for more information.
    *
    * @group expertSetParam
-   */@Since("2.3.0")
+   */
+  @Since("2.3.0")
   def setCollectSubModels(value: Boolean): this.type = set(collectSubModels, value)
 
   @Since("2.0.0")


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org