From 5e68480693ff299dee8da73f37e418f726c5ce87 Mon Sep 17 00:00:00 2001 From: Henri Pesonen Date: Thu, 19 Aug 2021 10:45:54 +0200 Subject: [PATCH] Fix lotkavolterra (#385) * Initial commit with changelog * Change prior parameters to follow ones from the given reference --- CHANGELOG.rst | 1 + elfi/examples/lotka_volterra.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6df7fa8d..a4b62abe 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -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 diff --git a/elfi/examples/lotka_volterra.py b/elfi/examples/lotka_volterra.py index c09cf88a..0d17ff44 100644 --- a/elfi/examples/lotka_volterra.py +++ b/elfi/examples/lotka_volterra.py @@ -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'))