An open API service indexing awesome lists of open source software.

https://github.com/simonrw/emcee_functools

Convenience function helpers for emcee
https://github.com/simonrw/emcee_functools

Last synced: about 1 year ago
JSON representation

Convenience function helpers for emcee

Awesome Lists containing this project

README

          

# `emcee_functools`

Convenience function helpers for `emcee`.

## Example usage:

```python
from emcee_functools import func_signature, Fixed, Variable

@func_signature(a=Fixed(), b=Variable())
def lnprob(**params):
a = params['a']
b = params['b']

lnp = lnprob(**params)
if np.isfinite(lnp):
return 0. # Placeholder, should actually return a probability here...

return -np.inf
```