Update CM20315_Training_I.ipynb

This commit is contained in:
Pietro Monticone
2023-11-30 16:44:01 +01:00
parent 4429600bcc
commit 685d910bbc

View File

@@ -108,7 +108,7 @@
"source": [
"def line_search(loss_function, thresh=.0001, max_iter = 10, draw_flag = False):\n",
"\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\n",
" c = 0.66\n",
@@ -139,7 +139,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",
" # TODO REPLACE THE BLOCK OF CODE BELOW WITH THIS RULE\n",
" if (0):\n",
" continue;\n",
@@ -147,7 +147,7 @@
" # Rule #3 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",
" # TODO REPLACE THE BLOCK OF CODE BELOW WITH THIS RULE\n",
" if(0):\n",
" continue\n",