Closed GoogleCodeExporter closed 8 years ago
Operating System: Ubuntu 9.10
Original comment by rany...@gmail.com
on 26 Aug 2010 at 12:32
I'll check it today.
Original comment by fccoelho
on 26 Aug 2010 at 1:46
Did you check it?
Original comment by rany...@gmail.com
on 3 Nov 2010 at 2:26
Delphine,
this model is way too complex to check for such a basic error. There are too
many layers which could be introducing bugs. I'll try to reproduce this on a
very simple example, or better yet, I'll write some tests to check times of
events match changes in series.
Original comment by fccoelho
on 3 Nov 2010 at 3:26
This code created from the deterministic example shows the problem (I changed
the transmission rate, 100 times lower, so that the first event was later than
1).
The population at time 1 should not have changed if the first event is later
than 1.
Original comment by rany...@gmail.com
on 3 Nov 2010 at 6:04
Attachments:
Thanks,
I have been working all day today to write tests that nail this problem. It's a
bit complicated. But it seems fixable. If you want to take a look at the tests,
look in the repository in this file:
http://code.google.com/p/bayesian-inference/source/browse/trunk/BIP/tests/test_S
DE_gillespie.py
To run this test you need to have nose installed (easy_install -U nose) and
BIP's latest version (clone the repository). Then just do "nosetests
test_SDE_gillespie.py"
Original comment by fccoelho
on 3 Nov 2010 at 7:07
it has been fixed both in the repository and in version 0.5.4 in PyPI.
Delphine, please verify.
Original comment by fccoelho
on 4 Nov 2010 at 11:39
Managed to upgrade and got no error. Everything matches! Thanks
Original comment by rany...@gmail.com
on 4 Nov 2010 at 11:51
Original issue reported on code.google.com by
rany...@gmail.com
on 26 Aug 2010 at 11:09Attachments: