[mlpack-git] [mlpack] Add covariance factorization caching to gaussian distribution (#390)

Stephen Tu notifications at github.com
Tue Jan 20 20:28:56 EST 2015


These series of commits adds caching of various factorizations and inverses of the covariance matrix for the gaussian distribution. Note that the previous version did not do error checking for positive definite (or even symmetric matrices) on construction-- this is no longer the case (via a cholesky decomposition attempt which fails if the assumption is violated).

In addition, various test cases had to be fixed to make this work. Previous test cases did not even use symmetric covariance matrices in some cases (who knows what the results were actually computing)!
You can view, comment on, or merge this pull request online at:

  https://github.com/mlpack/mlpack/pull/390

-- Commit Summary --

  * WIP: gaussian distribution caches covariance factorizations
  * WIP: fix one test case
  * fix some distribution test cases
  * some more distribution test fixes
  * ensure random covariance is positive definite
  * fix HMM load/save tests by ensuring covariance is positive definite
  * remove stray commit

-- File Changes --

    M src/mlpack/core/dists/gaussian_distribution.cpp (50)
    M src/mlpack/core/dists/gaussian_distribution.hpp (36)
    M src/mlpack/core/dists/regression_distribution.hpp (4)
    M src/mlpack/methods/gmm/em_fit_impl.hpp (47)
    M src/mlpack/methods/gmm/gmm_convert_main.cpp (4)
    M src/mlpack/methods/hmm/hmm_util_impl.hpp (8)
    M src/mlpack/tests/distribution_test.cpp (87)
    M src/mlpack/tests/gmm_test.cpp (7)
    M src/mlpack/tests/hmm_test.cpp (14)

-- Patch Links --

https://github.com/mlpack/mlpack/pull/390.patch
https://github.com/mlpack/mlpack/pull/390.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/390
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150120/2604cc51/attachment.html>


More information about the mlpack-git mailing list