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

emcee move feature #897

Draft
wants to merge 1 commit into
base: release-2.5
Choose a base branch
from

Conversation

kecnry
Copy link
Member

@kecnry kecnry commented Jun 13, 2024

This implements the ability to override the move within the emcee sampler backend via a feature but has not been tested.

To use:

import phoebe

b = phoebe.default_binary()
...
b.add_solver('emcee', solver='emcee01')
b.add_feature('emcee_move', solver='emcee01', feature='move01')
print(b.filter(feature='move01'))

TODO:

  • test to see if this works and is actually useful to have in the code
  • documentation
  • test coverage

* allows (optionally) attaching multiple moves with arbitrary probability weights to an emcee solver
* does not currently support RedBlue (as that requires manual subclassing), HM (as that requires a custom callable), or Gaussian (as that requires a passed covariace scalar/vector/matrix).  All other moves supported by emcee are supported with all options exposed
@kecnry kecnry marked this pull request as draft June 13, 2024 07:52
@kecnry kecnry force-pushed the emcee_move_feature branch from dd00135 to 350840d Compare June 13, 2024 08:06
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.

1 participant