Skip to content

Conversation

@babakmaboudi
Copy link

This is the rework of the CUQIpy samplers:

The parent calss "Sampler_new" is a generic class for which it handles samples. Ideally it should also handle sampler management but at this point it doesn't do anything.

The child class "ProposalBasedSampler" handles the proposal and acceptance/rejection history. In ideal case pCN should pass its prior to the init of ProposalBasedSampler as the proposal strategy. But I couldn't make that work.

The grandchild class MH or pCN is in charge of proposing and accepting/rejecting a single sample. ProposalBasedSampler is in charge of tracking the history. However, I didn't mange to make pCN work.

Let me know if you have questions.
Babak

@nabriis
Copy link
Collaborator

nabriis commented Oct 11, 2023

Thank you very much for adding the checkpoint PR @babakmaboudi! Super excited to get this sampler rework into CUQIpy! It has a lot of potential.

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

Successfully merging this pull request may close these issues.

2 participants