-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
General description of task
Move the "new" samplers at cuqi.experimental.mcmc to cuqi.sampler and the "old" samplers at cuqi.sampler to cuqi.legacy.sampler.
Definition of Done (Feature/change)
- Move samplers at
sampler, including all subsamplers and gibbs, tolegacy.sampler. - Move samplers at
experimental.mcmcto new module 'sampler' and keep it undercuqi. - Update all demos under
dev,howto, andtutorial - Update unit tests
- Update the logic in
BayesianProblemand use the new samplers by default withBayesianProblem- Note: From now on, the default samplers of
BayesianProblemare changed, from old/legacy to new. - We can still use old/legacy samplers with
BayesianProblemby providing a flaglegacy=True
- Note: From now on, the default samplers of
- Fix problems in unit tests related to the above change to
BayesianProblem - In the main
legacy.sampler.Samplerclass, we add a warning once the user creates an instance of the old samplers (includinglegacy.sampler.Gibbs, which doesn't inherit fromlegacy.sampler.Sampler) - Rename test file
test_sampler.py->test_legacy_sampler.py -
. It is decided to leave it at_recommender.pyis moved to the same level as the new sampler files, i.e.,sampler/_recommender.pyexperimentalafter group discussion.
Definition of Done (Mandatory)
- Documentation added (docstrings on all public methods/classes)
- Unit tests added/updated (and passing!)
- Code reviewed and approved by 2 CUQI-maintainers
- Online documentation is rendered correctly (esp. math)
Metadata
Metadata
Assignees
Labels
No labels