From 193e2329f2b8428bd623e9a344d56b7ca2850a8d Mon Sep 17 00:00:00 2001 From: Pietro Monticone <38562595+pitmonticone@users.noreply.github.com> Date: Thu, 30 Nov 2023 16:45:28 +0100 Subject: [PATCH] Update CM20315_Training_III.ipynb --- CM20315/CM20315_Training_III.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CM20315/CM20315_Training_III.ipynb b/CM20315/CM20315_Training_III.ipynb index 4e38276..f91c021 100644 --- a/CM20315/CM20315_Training_III.ipynb +++ b/CM20315/CM20315_Training_III.ipynb @@ -340,7 +340,7 @@ " return compute_loss(data[0,:], data[1,:], model, phi_start+ gradient * dist_prop)\n", "\n", "def line_search(data, model, phi, gradient, thresh=.00001, max_dist = 0.1, max_iter = 15, verbose=False):\n", - " # Initialize four points along the rnage we are going to search\n", + " # Initialize four points along the range we are going to search\n", " a = 0\n", " b = 0.33 * max_dist\n", " c = 0.66 * max_dist\n", @@ -371,7 +371,7 @@ " # Rule #2 If point b is less than point c then\n", " # then point d becomes point c, and\n", " # point b becomes 1/3 between a and new d\n", - " # point c beocome 2/3 between a and new d \n", + " # point c becomes 2/3 between a and new d \n", " if lossb < lossc:\n", " d = c\n", " b = a+ (d-a)/3\n", @@ -381,7 +381,7 @@ " # Rule #2 If point c is less than point b then\n", " # then point a becomes point b, and\n", " # point b becomes 1/3 between new a and d\n", - " # point c beocome 2/3 between new a and d \n", + " # point c becomes 2/3 between new a and d \n", " a = b\n", " b = a+ (d-a)/3\n", " c = a+ 2*(d-a)/3\n",