-
- Downloads
SPARK-5018 [MLlib] [WIP] Make MultivariateGaussian public
Moving MutlivariateGaussian from private[mllib] to public. The class uses Breeze vectors internally, so this involves creating a public interface using MLlib vectors and matrices. This initial commit provides public construction, accessors for mean/covariance, density and log-density. Other potential methods include entropy and sample generation. Author: Travis Galoppo <tjg2107@columbia.edu> Closes #3923 from tgaloppo/spark-5018 and squashes the following commits: 2b15587 [Travis Galoppo] Style correction b4121b4 [Travis Galoppo] Merge remote-tracking branch 'upstream/master' into spark-5018 e30a100 [Travis Galoppo] Made mu, sigma private[mllib] members of MultivariateGaussian Moved MultivariateGaussian (and test suite) from stat.impl to stat.distribution (required updates in GaussianMixture{EM,Model}.scala) Marked MultivariateGaussian as @DeveloperApi Fixed style error 9fa3bb7 [Travis Galoppo] Style improvements 91a5fae [Travis Galoppo] Rearranged equation for part of density function 8c35381 [Travis Galoppo] Fixed accessor methods to match member variable names. Modified calculations to avoid log(pow(x,y)) calculations 0943dc4 [Travis Galoppo] SPARK-5018 4dee9e1 [Travis Galoppo] SPARK-5018
Showing
- mllib/src/main/scala/org/apache/spark/mllib/clustering/GaussianMixtureEM.scala 6 additions, 5 deletions...org/apache/spark/mllib/clustering/GaussianMixtureEM.scala
- mllib/src/main/scala/org/apache/spark/mllib/clustering/GaussianMixtureModel.scala 1 addition, 1 deletion.../apache/spark/mllib/clustering/GaussianMixtureModel.scala
- mllib/src/main/scala/org/apache/spark/mllib/stat/distribution/MultivariateGaussian.scala 52 additions, 18 deletions.../spark/mllib/stat/distribution/MultivariateGaussian.scala
- mllib/src/test/scala/org/apache/spark/mllib/stat/distribution/MultivariateGaussianSuite.scala 16 additions, 17 deletions...k/mllib/stat/distribution/MultivariateGaussianSuite.scala
Please register or sign in to comment