Skip to content

Commit e2979a3

Browse files
Merge pull request #3834 from DeliciousHair/theano_tutorial_fix
Fixed small but critical typo in Theano Op example (#3832)
2 parents a0bde88 + 0368675 commit e2979a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/Advanced_usage_of_Theano_in_PyMC3.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ We can now use `scipy.optimize.newton` to find the root::
151151
return jac
152152

153153
def mu_from_theta(theta):
154-
return optimize.newton(func, 1, fprime=jac, args=(0.4,))
154+
return optimize.newton(func, 1, fprime=jac, args=(theta,))
155155

156156
We could wrap `mu_from_theta` with `tt.as_op` and use gradient-free
157157
methods like Metropolis, but to get NUTS and ADVI working, we also

0 commit comments

Comments
 (0)