-
- Downloads
[SPARK-2801][MLlib]: DistributionGenerator renamed to RandomDataGenerator....
[SPARK-2801][MLlib]: DistributionGenerator renamed to RandomDataGenerator. RandomRDD is now of generic type The RandomRDDGenerators used to only output RDD[Double]. Now RandomRDDGenerators.randomRDD can be used to generate a random RDD[T] via a class that extends RandomDataGenerator, by supplying a type T and overriding the nextValue() function as they wish. Author: Burak <brkyvz@gmail.com> Closes #1732 from brkyvz/SPARK-2801 and squashes the following commits: c94a694 [Burak] [SPARK-2801][MLlib] Missing ClassTags added 22d96fe [Burak] [SPARK-2801][MLlib]: DistributionGenerator renamed to RandomDataGenerator, generic types added for RandomRDD instead of Double
Showing
- mllib/src/main/scala/org/apache/spark/mllib/random/RandomDataGenerator.scala 9 additions, 9 deletions...a/org/apache/spark/mllib/random/RandomDataGenerator.scala
- mllib/src/main/scala/org/apache/spark/mllib/random/RandomRDDGenerators.scala 17 additions, 15 deletions...a/org/apache/spark/mllib/random/RandomRDDGenerators.scala
- mllib/src/main/scala/org/apache/spark/mllib/rdd/RandomRDD.scala 18 additions, 16 deletions...src/main/scala/org/apache/spark/mllib/rdd/RandomRDD.scala
- mllib/src/test/scala/org/apache/spark/mllib/random/RandomDataGeneratorSuite.scala 3 additions, 3 deletions.../apache/spark/mllib/random/RandomDataGeneratorSuite.scala
- mllib/src/test/scala/org/apache/spark/mllib/random/RandomRDDGeneratorsSuite.scala 5 additions, 3 deletions.../apache/spark/mllib/random/RandomRDDGeneratorsSuite.scala
Please register or sign in to comment