Skip to content

Commit

Permalink
update Roulette docs (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
aloctavodia authored Oct 1, 2024
1 parent 636d9e1 commit ebd338d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/examples/param_space_1d_examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -750,9 +750,9 @@
"source": [
"The roulette method allows us to find a prior distribution by *drawing*. The name roulette comes from the analogy that we are placing a limited set of chips where we think the mass of a distribution should be.\n",
"\n",
"For this task we are offered with a grid of m equally sized bins covering the range of x. And we have to allocate a total of n chips between the bins. In other words we use a grid to draw a histogram and the function will try to tell us what distribution, from a given pool of options, is a better fit for our drawing.\n",
"For this task we are offered with a grid of `m` equally sized bins covering the range of `x`. And we have to allocate a total of `n` chips between the bins. In other words we use a grid to draw a histogram and the function will try to tell us what distribution, from a given pool of options, is a better fit for our drawing.\n",
"\n",
"The `pz.roulette()` function uses matplotlib interactively, for this to work we need to call the magic `%matplotlib widget` and have ipywidgets installed (a requirement of PreliZ)."
"`pz.Roulette()` uses matplotlib interactively, for this to work we need to call the magic `%matplotlib widget` and have ipywidgets installed (a optional requirement of PreliZ). Once you have elicited the distribution you can call `.dist` attribute to get the distribution. In the following example it will be `result.dist`."
]
},
{
Expand Down Expand Up @@ -803,7 +803,7 @@
],
"source": [
"%matplotlib widget\n",
"pz.roulette()"
"result = pz.Roulette()"
]
},
{
Expand Down

0 comments on commit ebd338d

Please sign in to comment.