Feature request: directional distributions (like von Mises-Fisher)
Are there plans to implement directional statistical distributions? In particular, I'm looking to get a von Mises-Fisher distribution into contrib/distributions/python.
I'm beginning work on a VMF distribution myself, but as a new TF user my progress is likely to be slow.
(Note that scipy.stats implements a basic von Mises distribution.)
References: Wikipedia: Von Mises–Fisher distribution Arxiv: Directional Statistics in Machine Learning: a Brief Review
@rw I've just recently needed to implement this distribution and have some code that is based on the contrib.distributions interface (now in the process of being moved into the core). I haven't implemented the sampling algorithm yet and I only handle the p=3 and p=4 cases, but if you haven't already solved this problem I'm willing to share my code. Once I've got things in good shape I was planning on contributing it to TF.
@xodus7 Good to hear! I didn't get around to implementing this.
Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!
@xodus7 I am interested in this feature as well. If your code is still available, can you please contact me using [email protected]?
@alexpashevich I sent you and email with the code. I hope it's useful!
We are tracking this in TF probability. Would love a contribution to get the ball rolling, even if you don't have a sampler.
What would be helpful would be an implementation of the modified bessel function with a custom gradient function. This repo https://github.com/nicola-decao/s-vae/blob/master/hyperspherical_vae/ops/ive.py wraps scipy methods which isn't the right approach for a contribution here, but is in many ways better than my approach approximating using power series expansions for small and large concentration parameters. If someone has some guidance for the best method to get an implementation of the bessel function then I'd be willing to make a go at a generalized implementation that supports dimensions P > 4.
Please remove the assignee, as this issue is inviting external contributions. Otherwise, remove the contributions welcome label. Thank you.
Please remove the assignee, as this issue is inviting external contributions. Otherwise, remove the contributions welcome label. Thank you.
Please remove the assignee, as this issue is inviting external contributions. Otherwise, remove the contributions welcome label. Thank you.
Please remove the assignee, as this issue is inviting external contributions. Otherwise, remove the contributions welcome label. Thank you.
Please remove the assignee, as this issue is inviting external contributions. Otherwise, remove the contributions welcome label. Thank you.