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

Support for multivariate distributions #23

Open
dnclrhs opened this issue Feb 16, 2022 · 1 comment
Open

Support for multivariate distributions #23

dnclrhs opened this issue Feb 16, 2022 · 1 comment

Comments

@dnclrhs
Copy link

dnclrhs commented Feb 16, 2022

Not sure if I misunderstand something.
Appears that UncertainFunction is unable to handle multivariate distributions.

Tried running

x = uv(scipy.stats.multinomial(n=1,p=[p1,p2,p3]))

and got the error

AssertionError: Input must be a  distribution from the scipy.stats module.

Which it clearly is.
Any idea?

@dnclrhs
Copy link
Author

dnclrhs commented Feb 16, 2022

I notice

assert hasattr(
            rv, "dist"
        ), "Input must be a  distribution from the scipy.stats module."
        self.rv = rv

in mcerp, but the multinomial distribution of scipy has a _dist attribute, not a dist

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

No branches or pull requests

1 participant