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

Specialized DiscreteMarkovChain step sampler #359

Merged
merged 3 commits into from
Sep 15, 2024

Conversation

ricardoV94
Copy link
Member

@ricardoV94 ricardoV94 commented Jul 11, 2024

Closes #324

It's just CategoricalGibbsMetropolis but accepts DiscreteMarkovChain and knows how to get the dimensionality of P.

Once we merge DMC into PyMC we can just extend the CategoricalGibbsMetropolis to accept it

@ricardoV94 ricardoV94 added the enhancements New feature or request label Jul 11, 2024
@ricardoV94 ricardoV94 changed the title Specialized DiscreteMarkovChain step Specialized DiscreteMarkovChain step sampler Jul 11, 2024
@ricardoV94
Copy link
Member Author

ricardoV94 commented Jul 11, 2024

Also I'm sure there must be more clever DMC samplers. This will update each step at a time, which I can imagine may be suboptimal. At least it updates in random order in every step

Copy link
Member

@jessegrabowski jessegrabowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a fine stop-gap change

Maybe wait for the #361 to merge first then change where the test file is?

@ricardoV94
Copy link
Member Author

Seems like a fine stop-gap change

Maybe wait for the #361 to merge first then change where the test file is?

Sure

@ricardoV94 ricardoV94 merged commit f61e161 into pymc-devs:main Sep 15, 2024
7 checks passed
@ricardoV94 ricardoV94 deleted the discrete_markov_chain_step branch October 3, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancements New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add specialized step sampler for DiscreteMarkovChain
2 participants