Unverified Commit e2979a34 authored by Brandon T. Willard's avatar Brandon T. Willard Committed by GitHub

Merge pull request #3834 from DeliciousHair/theano_tutorial_fix

Fixed small but critical typo in Theano Op example (#3832)
parents a0bde881 03686756
......@@ -151,7 +151,7 @@ We can now use `scipy.optimize.newton` to find the root::
return jac
def mu_from_theta(theta):
return optimize.newton(func, 1, fprime=jac, args=(0.4,))
return optimize.newton(func, 1, fprime=jac, args=(theta,))
We could wrap `mu_from_theta` with `tt.as_op` and use gradient-free
methods like Metropolis, but to get NUTS and ADVI working, we also
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment