[mlpack-git] [mlpack/mlpack] GammaDistribution: Adds functionality to solve #749 (#751)

Yannis Mentekidis notifications at github.com
Fri Aug 5 14:06:15 EDT 2016


While implementing LSHModel I realized I would need the `GammaDistribution::Probability(x)` function. I remembered I mentioned in https://github.com/mlpack/mlpack/issues/733 I said I'd do it at some point, so I completed it now.

I also added a `Probability(x, dimension)`, for evaluating a single dimension at a time. This is useful for my implementation, and might prove useful to others since the gammas are completely independent here.

There's only one thing that bugs me: I'm not sure how to test the `Train(observations, probability)` function, so I haven't written a test for that yet.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Adds functionality to solve #749

-- File Changes --

    M src/mlpack/core/dists/gamma_distribution.cpp (99)
    M src/mlpack/core/dists/gamma_distribution.hpp (73)
    M src/mlpack/tests/distribution_test.cpp (70)

-- Patch Links --

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

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/751
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160805/84d8fc9b/attachment-0001.html>


More information about the mlpack-git mailing list