Skip to content

Commit

Permalink
Fix lotkavolterra (#385)
Browse files Browse the repository at this point in the history
* Initial commit with changelog

* Change prior parameters to follow ones from the given reference
  • Loading branch information
hpesonen authored Aug 19, 2021
1 parent 6dd1230 commit 5e68480
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Changelog
=========

- Change lotka-volterra priors to follow the given reference
- Fix README.md badges
- Fix a few small issues with CONTRIBUTING.rst
- Add Github Actions based CI workflow
Expand Down
6 changes: 3 additions & 3 deletions elfi/examples/lotka_volterra.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ def get_model(n_obs=50, true_params=None, seed_obs=None, **kwargs):
priors = []
sumstats = []

priors.append(elfi.Prior(ExpUniform, -2, 0, model=m, name='r1'))
priors.append(elfi.Prior(ExpUniform, -5, -2.5, model=m, name='r2')) # easily kills populations
priors.append(elfi.Prior(ExpUniform, -2, 0, model=m, name='r3'))
priors.append(elfi.Prior(ExpUniform, -6., 2., model=m, name='r1'))
priors.append(elfi.Prior(ExpUniform, -6., 2., model=m, name='r2')) # easily kills populations
priors.append(elfi.Prior(ExpUniform, -6., 2., model=m, name='r3'))
priors.append(elfi.Prior('poisson', 50, model=m, name='prey0'))
priors.append(elfi.Prior('poisson', 100, model=m, name='predator0'))
priors.append(elfi.Prior(ExpUniform, np.log(0.5), np.log(50), model=m, name='sigma'))
Expand Down

0 comments on commit 5e68480

Please sign in to comment.