From ade397fed62e461208369e824ce3339931d09ade Mon Sep 17 00:00:00 2001 From: Nathan-McJames <72814553+Nathan-McJames@users.noreply.github.com> Date: Sat, 1 Nov 2025 23:04:14 +0000 Subject: [PATCH] Update gp-inference.md Suggesting a re-ordering of the legend in the figure to match the data. --- chapter_gaussian-processes/gp-inference.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chapter_gaussian-processes/gp-inference.md b/chapter_gaussian-processes/gp-inference.md index cfccc3b01d..a435a317a2 100644 --- a/chapter_gaussian-processes/gp-inference.md +++ b/chapter_gaussian-processes/gp-inference.md @@ -330,8 +330,8 @@ with torch.no_grad(): ax.plot(test_x.numpy(), observed_pred.mean.numpy(), linewidth=2.) ax.fill_between(test_x.numpy(), lower.numpy(), upper.numpy(), alpha=0.25) ax.set_ylim([-1.5, 1.5]) - ax.legend(['True Function', 'Predictive Mean', 'Observed Data', - '95% Credible Set']) + ax.legend(['Observed Data', 'True Function', 'Predictive Mean', '95% Credible Set']) + ``` Finally, we plot the fit.