Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to a scipy distribution object #25

Open
yoavram opened this issue Jun 23, 2020 · 2 comments
Open

Convert to a scipy distribution object #25

yoavram opened this issue Jun 23, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@yoavram
Copy link

yoavram commented Jun 23, 2020

It would be nice to have a helper function that takes the output of the model and converts it to a scipy.stats rv object so that it can be used to compute density or cumulative density, etc.
I’m guessing it’s not complicated to do, looking at the example in https://github.com/cpmpercussion/keras-mdn-layer/blob/master/notebooks/MDN-2D-spiral-prediction.ipynb (specifically the cell starting with “Plot the means”).

@cpmpercussion
Copy link
Owner

Hm, I'm not really sure what a scipy.stats rv object is, so probably something that would be better handled by someone into using scipy.stats regularly.

@cpmpercussion cpmpercussion added the enhancement New feature or request label Aug 7, 2020
@yoavram
Copy link
Author

yoavram commented Aug 9, 2020

For the record, this is an rv (random variable) in scipy:
https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rv_continuous.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants