Skip to content

Commit

Permalink
docs: use fast lambdify in usage notebook step 3
Browse files Browse the repository at this point in the history
Reverts a change introduced in #359
  • Loading branch information
redeboer committed Dec 1, 2021
1 parent efb2026 commit b920c77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/usage/step3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"source": [
"As explained in the {doc}`previous step <step2>`, a {class}`.ParametrizedFunction` can compute a list of intensities (real numbers) for an input {obj}`.DataSample`. At this stage, we want to optimize the parameters of this {class}`.ParametrizedFunction`, so that it matches the distribution of our data sample. This is what we call 'fitting'.\n",
"\n",
"First, we load the relevant data from the previous steps."
"First, we load the relevant data from the previous steps. Notice that we use {func}`.create_parametrized_function` with the argument `max_complexity`, which speeds up lambdification (see {doc}`/usage/faster-lambdify`)."
]
},
{
Expand Down Expand Up @@ -89,6 +89,7 @@
" expression=model.expression.doit(),\n",
" parameters=model.parameter_defaults,\n",
" backend=\"jax\",\n",
" max_complexity=100,\n",
")"
]
},
Expand Down

0 comments on commit b920c77

Please sign in to comment.