Skip to content

Commit

Permalink
ENH: add section headers in gp_pred_comp/notebook_plot
Browse files Browse the repository at this point in the history
  • Loading branch information
elcorto committed Dec 14, 2022
1 parent a18bae0 commit c4b76b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions book/content/gp_pred_comp/notebook_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ def plot_gp(
y_lim = (-3, 3)

# %% [markdown]
# ## Prior, noiseless
#
# First we plot the prior, without noise (`predict_noiseless`).
#
# This is the standard textbook case. We set $\ell$ to some constant of our
Expand Down Expand Up @@ -248,6 +250,8 @@ def plot_gp(


# %% [markdown]
# ## Prior, noisy
#
# Even though not super useful, we can certainly generate noisy prior samples
# in the `predict` setting when using $\ma K'' + \sigma_n^2\,\ma I$ as prior
# covariance.
Expand All @@ -270,6 +274,8 @@ def plot_gp(


# %% [markdown]
# ## Posterior, noiseless, interpolation
#
# Now the posterior.
#
# For that, we do an $\ell$ optimization using 1$D$ toy data and `sklearn`
Expand Down Expand Up @@ -322,6 +328,7 @@ def plot_gp(
_ = ax.set_ylim(*y_lim)

# %% [markdown]
# ## Posterior, noiseless, regression
#
# Regression ($\sigma_n^2>0$), `predict_noiseless`.
#
Expand All @@ -340,6 +347,7 @@ def plot_gp(


# %% [markdown]
# ## Posterior, noisy, regression
#
# Regression ($\sigma_n^2>0$), `predict`.
#
Expand Down

0 comments on commit c4b76b8

Please sign in to comment.