Skip to content

Commit f029c98

Browse files
committed
docstrings, toc, and release notes
1 parent b56300f commit f029c98

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

RELEASE-NOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## PyMC3 3.8 (on deck)
44

55
### New features
6-
- Add capabilities to do inference on parameters in a differential equation with `DifferentialEquation`.
6+
- Add capabilities to do inference on parameters in a differential equation with `DifferentialEquation`. See [#3590](https://github.com/pymc-devs/pymc3/pull/3590).
77
- Distinguish between `Data` and `Deterministic` variables when graphing models with graphviz. PR [#3491](https://github.com/pymc-devs/pymc3/pull/3491).
88
- Sequential Monte Carlo - Approximate Bayesian Computation step method is now available. The implementation is in an experimental stage and will be further improved.
99
- Added `Matern12` covariance function for Gaussian processes. This is the Matern kernel with nu=1/2.

docs/source/notebooks/table_of_contents_examples.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,6 @@ Gallery.contents = {
5353
"normalizing_flows_overview": "Variational Inference",
5454
"gaussian-mixture-model-advi": "Variational Inference",
5555
"GLM-hierarchical-advi-minibatch": "Variational Inference",
56-
"ODE_API_parameter_estimation": "Inference in ODE models"
56+
"ODE_parameter_estimation": "Inference in ODE models",
57+
"ODE_API_parameter_estimation": "Inference in ODE models with DifferentialEquation"
5758
}

pymc3/ode/ode.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def __init__(self, func, times, n_states, n_odeparams, t0=0):
7070
self._grad_op = ODEGradop(self._numpy_vsp)
7171

7272
def _make_sens_ic(self):
73-
"""The sensitivity matrix will always have consistent form.
73+
"""
74+
The sensitivity matrix will always have consistent form.
7475
If the first n_odeparams entries of the parameters vector in the simulate call
7576
correspond to ode paramaters, then the first n_odeparams columns in
7677
the sensitivity matrix will be 0
@@ -94,14 +95,8 @@ def _make_sens_ic(self):
9495
return dydp
9596

9697
def _system(self, Y, t, p):
97-
"""This is the function that will be passed to odeint.
98-
Solves both ODE and sensitivities
99-
Args:
100-
Y (vector): current state and current gradient state
101-
t (scalar): current time
102-
p (vector): parameters
103-
Returns:
104-
derivatives (vector): derivatives of state and gradient
98+
"""This is the function that will be passed to odeint. Solves both ODE and sensitivities
99+
105100
"""
106101

107102
dydt, ddt_dydp = self._augmented_func(Y[: self._n], t, p, Y[self._n :])

pymc3/ode/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55

66
def augment_system(ode_func, n, m):
7-
"""Function to create augmented system.
7+
"""
8+
Function to create augmented system.
89
910
Take a function which specifies a set of differential equations and return
1011
a compiled function which allows for computation of gradients of the

0 commit comments

Comments
 (0)