-
- Downloads
[SPARK-4728][MLLib] Add exponential, gamma, and log normal sampling to MLlib da...
...ta generators This patch adds: * Exponential, gamma, and log normal generators that wrap Apache Commons math3 to the private API * Functions for generating exponential, gamma, and log normal RDDs and vector RDDs * Tests for the above Author: RJ Nowling <rnowling@gmail.com> Closes #3680 from rnowling/spark4728 and squashes the following commits: 455f50a [RJ Nowling] Add tests for exponential, gamma, and log normal samplers to JavaRandomRDDsSuite 3e1134a [RJ Nowling] Fix val/var, unncessary creation of Distribution objects when setting seeds, and import line longer than line wrap limits 58f5b97 [RJ Nowling] Fix bounds in tests so they scale with variance, not stdev 84fd98d [RJ Nowling] Add more values for testing distributions. 9f96232 [RJ Nowling] [SPARK-4728] Add exponential, gamma, and log normal sampling to MLlib data generators
Showing
- mllib/src/main/scala/org/apache/spark/mllib/random/RandomDataGenerator.scala 66 additions, 3 deletions...a/org/apache/spark/mllib/random/RandomDataGenerator.scala
- mllib/src/main/scala/org/apache/spark/mllib/random/RandomRDDs.scala 363 additions, 0 deletions...main/scala/org/apache/spark/mllib/random/RandomRDDs.scala
- mllib/src/test/java/org/apache/spark/mllib/random/JavaRandomRDDsSuite.java 99 additions, 0 deletions...va/org/apache/spark/mllib/random/JavaRandomRDDsSuite.java
- mllib/src/test/scala/org/apache/spark/mllib/random/RandomDataGeneratorSuite.scala 51 additions, 1 deletion.../apache/spark/mllib/random/RandomDataGeneratorSuite.scala
- mllib/src/test/scala/org/apache/spark/mllib/random/RandomRDDsSuite.scala 43 additions, 0 deletions...scala/org/apache/spark/mllib/random/RandomRDDsSuite.scala
Please register or sign in to comment