Skip to content

Commit

Permalink
Fix MCMC?
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-dodd committed Sep 16, 2022
1 parent 1fb92ee commit fe1cf90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/tfp_integration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
"def build_log_pi(target, mapper_fn):\n",
" def array_mll(parameter_array):\n",
" parameter_dict = mapper_fn([jnp.array(i) for i in parameter_array])\n",
" gpx.constrain(parameter_dict, bijectors)\n",
" parameter_dict = gpx.constrain(parameter_dict, bijectors)\n",
" return target(parameter_dict)\n",
"\n",
" return array_mll\n",
Expand Down Expand Up @@ -277,8 +277,8 @@
"metadata": {},
"outputs": [],
"source": [
"#unconstrained_params = gpx.unconstrain(params, bijectors)\n",
"#states, log_probs = jax.jit(run_chain)(key, jnp.array(dict_to_array(unconstrained_params)))\n",
"unconstrained_params = gpx.unconstrain(params, bijectors)\n",
"states, log_probs = jax.jit(run_chain)(key, jnp.array(dict_to_array(unconstrained_params)))\n",
"states, log_probs = jax.jit(run_chain)(key, jnp.array(dict_to_array(params)))"
]
},
Expand Down

0 comments on commit fe1cf90

Please sign in to comment.