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

Customized distributions #50

Open
marouanehanhasse opened this issue Mar 13, 2021 · 3 comments
Open

Customized distributions #50

marouanehanhasse opened this issue Mar 13, 2021 · 3 comments

Comments

@marouanehanhasse
Copy link

I actually have one question, does AdvancedMH supports customized distributions?

@cpfiffer
Copy link
Member

For the proposal distributions? Yeah, I don't see why not.

@cpfiffer
Copy link
Member

You can give it a Function which supports literally any type of proposal, and anything that inherits Distribution from Distributions.jl.

@marouanehanhasse
Copy link
Author

oh that's great because i've been trying to work with the package for my code with a customized distribution here: (https://github.com/marouanehanhasse/Quantum_Relay/blob/master/src/distributions.jl) where everything is defined for my model and i have a log target function that is defined like this : target(x::Vector)= log(qrs.prob(qq, x, mask_q1)) + log(qrs.prob(x)) where qq,mask_q1 are vectors or arrays as x but i don't really know hoe to do it in my case

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

2 participants