-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
WIP: Add DifferentialEquation: API for Bayesian inference of ODEs #3578
Conversation
* stabilize covariance * add release note * fix test
* Fix typos in docstrings. Fix some minor wording errors, but mostly fixed formatting issues. * Update sphinx configuration. Updated to make a deprecation warning go away. This should not change the behavior at all. * Update MultiTrace docs. Minor typo fixes and added MultiTrace attributes section. * Fix RST issues in documentation. * Remove obsolete file. The `getting_started.rst` file does not yield output that is linked into the docs. Instead, the index.rst file directly links to the pages once linked from getting_started.
Check out this pull request on ReviewNB: https://app.reviewnb.com/pymc-devs/pymc3/pull/3578 You'll be able to see notebook diffs and discuss changes. Powered by ReviewNB. |
Added @pytest.mark.xfail(condition=(theano.config.floatX == "float32"), reason="Fails on float32")
Adding dectorator actually made coverage worse.
Thanks for the catch @canyon289! Added the tests and will push later today. |
please remember to resolve the respective discussions |
def _simulate(self, parameters): | ||
# Initial condition comprised of state initial conditions and raveled | ||
# sensitivity matrix | ||
y0 = np.concatenate([ parameters[self.n_odeparams:] , self._sens_ic]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing whitespace after [
and ]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our pylint settings are actually quite permissive when it comes to spaces. There are several empty lines, or spaces missing around operators
@@ -0,0 +1,596 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In many places, PyMC3 uses the test_value
stuff to make sanity checks. Can we support this also for ODEs? (forgot to hit finish review button...)
Reply via ReviewNB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you show me an example?
* move smc from step_methods to its own family * black * update notebooks * add release note and fix lint * add release note and fix lint * minor fix docstring * reorder arguments and minor fix docstring
Clean up docstring for `sample`.
* stabilize covariance * add release note * fix test
* Fix typos in docstrings. Fix some minor wording errors, but mostly fixed formatting issues. * Update sphinx configuration. Updated to make a deprecation warning go away. This should not change the behavior at all. * Update MultiTrace docs. Minor typo fixes and added MultiTrace attributes section. * Fix RST issues in documentation. * Remove obsolete file. The `getting_started.rst` file does not yield output that is linked into the docs. Instead, the index.rst file directly links to the pages once linked from getting_started.
Added @pytest.mark.xfail(condition=(theano.config.floatX == "float32"), reason="Fails on float32")
Adding dectorator actually made coverage worse.
Will repoen another PR once I fix some more issues. |
This is a work in progress, and a part of Google Summer of Code 2019.
This PR adds:
ode
submodule, which containsDifferntialEquation
, the main tool for doing inference with ODEs.Unit tests for
ode
A Notebook showcasing how to use
DifferentialEquation
in a couple of examples.As this is a work in progress, comments are much appreciated.