From 19bdc23674f7a2be0530896d4bb2af7d2329cfd3 Mon Sep 17 00:00:00 2001 From: udlbook <110402648+udlbook@users.noreply.github.com> Date: Thu, 18 Apr 2024 16:00:36 -0400 Subject: [PATCH] Created using Colab --- Notebooks/Chap05/5_1_Least_Squares_Loss.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Notebooks/Chap05/5_1_Least_Squares_Loss.ipynb b/Notebooks/Chap05/5_1_Least_Squares_Loss.ipynb index 5df709e..0b27864 100644 --- a/Notebooks/Chap05/5_1_Least_Squares_Loss.ipynb +++ b/Notebooks/Chap05/5_1_Least_Squares_Loss.ipynb @@ -118,7 +118,7 @@ " ax.plot(x_model,y_model)\n", " if sigma_model is not None:\n", " ax.fill_between(x_model, y_model-2*sigma_model, y_model+2*sigma_model, color='lightgray')\n", - " ax.set_xlabel('Input, $x$'); ax.set_ylabel('Output, $y$')\n", + " ax.set_xlabel(r'Input, $x$'); ax.set_ylabel(r'Output, $y$')\n", " ax.set_xlim([0,1]);ax.set_ylim([-1,1])\n", " ax.set_aspect(0.5)\n", " if title is not None:\n", @@ -222,7 +222,7 @@ "gauss_prob = normal_distribution(y_gauss, mu, sigma)\n", "fig, ax = plt.subplots()\n", "ax.plot(y_gauss, gauss_prob)\n", - "ax.set_xlabel('Input, $y$'); ax.set_ylabel('Probability $Pr(y)$')\n", + "ax.set_xlabel(r'Input, $y$'); ax.set_ylabel(r'Probability $Pr(y)$')\n", "ax.set_xlim([-5,5]);ax.set_ylim([0,1.0])\n", "plt.show()\n", "\n", @@ -590,4 +590,4 @@ } } ] -} +} \ No newline at end of file