spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mengxr <...@git.apache.org>
Subject [GitHub] spark pull request: SPARK-1310: Start adding k-fold cross validati...
Date Thu, 10 Apr 2014 03:40:44 GMT
Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18#discussion_r11468744
  
    --- Diff: mllib/src/main/scala/org/apache/spark/mllib/util/MLUtils.scala ---
    @@ -172,6 +179,22 @@ object MLUtils {
       }
     
       /**
    +   * Return a k element list of pairs of RDDs with the first element of each pair
    +   * containing the validation data, a unique 1/Kth of the data and the second
    +   * element, the training data, contain the compliment of that.
    +   */
    +  def kFold[T : ClassTag](rdd: RDD[T], numFolds: Int, seed: Int): Array[(RDD[T], RDD[T])]
= {
    --- End diff --
    
    `T :` -> `T:` (remove the space in the middle)


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message