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

question about Gibbs Sampling #1713

Open
hjyoon93 opened this issue Dec 18, 2023 · 3 comments
Open

question about Gibbs Sampling #1713

hjyoon93 opened this issue Dec 18, 2023 · 3 comments

Comments

@hjyoon93
Copy link

does the current version of Gibbs Sampling allow the user to have evidence?

If so, how am I supposed to do that?

@ankurankan
Copy link
Member

@hjyoon93 Unfortunately, the current version doesn't have an option to specify the evidence.

@hjyoon93
Copy link
Author

Hi,

then in pgmpy is there any work around to specify the evidence?

or do you know any other Python library that offers Gibbs sampling with evidence?

@ankurankan
Copy link
Member

@hjyoon93 Sorry for the super late reply. A simple workaround with pgmpy could be to reduce each CPD in the network to the given evidence. Then a simple Gibbs sampling can be run on this reduced network.

I have not personally used any other Python package for Gibbs sampling.

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