Skip to content
Snippets Groups Projects
  • Xiangrui Meng's avatar
    825d4fe4
    [SPARK-3136][MLLIB] Create Java-friendly methods in RandomRDDs · 825d4fe4
    Xiangrui Meng authored
    Though we don't use default argument for methods in RandomRDDs, it is still not easy for Java users to use because the output type is either `RDD[Double]` or `RDD[Vector]`. Java users should expect `JavaDoubleRDD` and `JavaRDD[Vector]`, respectively. We should create dedicated methods for Java users, and allow default arguments in Scala methods in RandomRDDs, to make life easier for both Java and Scala users. This PR also contains documentation for random data generation. brkyvz
    
    Author: Xiangrui Meng <meng@databricks.com>
    
    Closes #2041 from mengxr/stat-doc and squashes the following commits:
    
    fc5eedf [Xiangrui Meng] add missing comma
    ffde810 [Xiangrui Meng] address comments
    aef6d07 [Xiangrui Meng] add doc for random data generation
    b99d94b [Xiangrui Meng] add java-friendly methods to RandomRDDs
    825d4fe4
    History
    [SPARK-3136][MLLIB] Create Java-friendly methods in RandomRDDs
    Xiangrui Meng authored
    Though we don't use default argument for methods in RandomRDDs, it is still not easy for Java users to use because the output type is either `RDD[Double]` or `RDD[Vector]`. Java users should expect `JavaDoubleRDD` and `JavaRDD[Vector]`, respectively. We should create dedicated methods for Java users, and allow default arguments in Scala methods in RandomRDDs, to make life easier for both Java and Scala users. This PR also contains documentation for random data generation. brkyvz
    
    Author: Xiangrui Meng <meng@databricks.com>
    
    Closes #2041 from mengxr/stat-doc and squashes the following commits:
    
    fc5eedf [Xiangrui Meng] add missing comma
    ffde810 [Xiangrui Meng] address comments
    aef6d07 [Xiangrui Meng] add doc for random data generation
    b99d94b [Xiangrui Meng] add java-friendly methods to RandomRDDs