diff --git a/doc/pub/week38/html/._week38-bs000.html b/doc/pub/week38/html/._week38-bs000.html
index 4888028fe..72a3d698d 100644
--- a/doc/pub/week38/html/._week38-bs000.html
+++ b/doc/pub/week38/html/._week38-bs000.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -277,7 +275,7 @@ MathJax.Hub.Config({
9
10
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs001.html b/doc/pub/week38/html/._week38-bs001.html
index 9ff52a9a8..2ae737fac 100644
--- a/doc/pub/week38/html/._week38-bs001.html
+++ b/doc/pub/week38/html/._week38-bs001.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -238,7 +236,7 @@ MathJax.Hub.Config({
- Lab Wednesday and Thursday: work on project 1
-- Thursday: Summary of regression methods, cross-validation and discussion of project 1. Start Logistic Regression Video of lecture
+- Thursday: Summary of regression methods, cross-validation and discussion of project 1. Start Logistic Regression Video of lecture Video on Bootstrapping
- Friday: Classification problems and Logistic Regression, from binary cases to several categories. Start optimization methods
- Reading recommendations:
@@ -264,7 +262,7 @@ MathJax.Hub.Config({
- 10
- 11
- ...
- - 43
+ - 42
- »
diff --git a/doc/pub/week38/html/._week38-bs002.html b/doc/pub/week38/html/._week38-bs002.html
index e34156536..daeea76de 100644
--- a/doc/pub/week38/html/._week38-bs002.html
+++ b/doc/pub/week38/html/._week38-bs002.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -305,7 +303,7 @@ $$
11
12
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs003.html b/doc/pub/week38/html/._week38-bs003.html
index ab905464b..3000e0895 100644
--- a/doc/pub/week38/html/._week38-bs003.html
+++ b/doc/pub/week38/html/._week38-bs003.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -270,7 +268,7 @@ cross-validation (LOOCV).
12
13
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs004.html b/doc/pub/week38/html/._week38-bs004.html
index 401c59cd6..edb6d7631 100644
--- a/doc/pub/week38/html/._week38-bs004.html
+++ b/doc/pub/week38/html/._week38-bs004.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -274,7 +272,7 @@ $$
13
14
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs005.html b/doc/pub/week38/html/._week38-bs005.html
index 0ef58d866..7a5e66296 100644
--- a/doc/pub/week38/html/._week38-bs005.html
+++ b/doc/pub/week38/html/._week38-bs005.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -270,7 +268,7 @@ MathJax.Hub.Config({
14
15
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs006.html b/doc/pub/week38/html/._week38-bs006.html
index 1c66a6600..0da959d00 100644
--- a/doc/pub/week38/html/._week38-bs006.html
+++ b/doc/pub/week38/html/._week38-bs006.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -370,7 +368,7 @@ plt.show()
15
16
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs007.html b/doc/pub/week38/html/._week38-bs007.html
index 1216d69a7..bd4fce807 100644
--- a/doc/pub/week38/html/._week38-bs007.html
+++ b/doc/pub/week38/html/._week38-bs007.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -271,7 +269,7 @@ simple recipe for fitting our data.
16
17
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs008.html b/doc/pub/week38/html/._week38-bs008.html
index 302eefe13..e623d4cb9 100644
--- a/doc/pub/week38/html/._week38-bs008.html
+++ b/doc/pub/week38/html/._week38-bs008.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -277,7 +275,7 @@ failure etc.
17
18
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs009.html b/doc/pub/week38/html/._week38-bs009.html
index 583433d9a..8923bf7e8 100644
--- a/doc/pub/week38/html/._week38-bs009.html
+++ b/doc/pub/week38/html/._week38-bs009.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -276,7 +274,7 @@ models, as we will see later.
18
19
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs010.html b/doc/pub/week38/html/._week38-bs010.html
index 4d3fb3221..fb667c912 100644
--- a/doc/pub/week38/html/._week38-bs010.html
+++ b/doc/pub/week38/html/._week38-bs010.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -284,7 +282,7 @@ $$
19
20
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs011.html b/doc/pub/week38/html/._week38-bs011.html
index 956f87955..0c9ab2836 100644
--- a/doc/pub/week38/html/._week38-bs011.html
+++ b/doc/pub/week38/html/._week38-bs011.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -281,7 +279,7 @@ $$
20
21
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs012.html b/doc/pub/week38/html/._week38-bs012.html
index 1585f0664..5519c9c71 100644
--- a/doc/pub/week38/html/._week38-bs012.html
+++ b/doc/pub/week38/html/._week38-bs012.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -281,7 +279,7 @@ the probability of a given category. This leads us to the logistic function.
21
22
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs013.html b/doc/pub/week38/html/._week38-bs013.html
index b7387c3ba..c6009c8ff 100644
--- a/doc/pub/week38/html/._week38-bs013.html
+++ b/doc/pub/week38/html/._week38-bs013.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -340,7 +338,7 @@ plt.show()
22
23
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs014.html b/doc/pub/week38/html/._week38-bs014.html
index 464a44b98..3fcd3c8e9 100644
--- a/doc/pub/week38/html/._week38-bs014.html
+++ b/doc/pub/week38/html/._week38-bs014.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -312,7 +310,7 @@ representing the probability for finding a value of \( y_i \) with a given
23
24
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs015.html b/doc/pub/week38/html/._week38-bs015.html
index a981b7ebd..55ec26504 100644
--- a/doc/pub/week38/html/._week38-bs015.html
+++ b/doc/pub/week38/html/._week38-bs015.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -279,7 +277,7 @@ $$
24
25
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs016.html b/doc/pub/week38/html/._week38-bs016.html
index f4204eb4f..973dc12fe 100644
--- a/doc/pub/week38/html/._week38-bs016.html
+++ b/doc/pub/week38/html/._week38-bs016.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -340,7 +338,7 @@ plt.show()
25
26
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs017.html b/doc/pub/week38/html/._week38-bs017.html
index 329d11a09..523d66dec 100644
--- a/doc/pub/week38/html/._week38-bs017.html
+++ b/doc/pub/week38/html/._week38-bs017.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -277,7 +275,7 @@ $$
26
27
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs018.html b/doc/pub/week38/html/._week38-bs018.html
index 5909abf9c..9e63c9a4f 100644
--- a/doc/pub/week38/html/._week38-bs018.html
+++ b/doc/pub/week38/html/._week38-bs018.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -280,7 +278,7 @@ $$
27
28
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs019.html b/doc/pub/week38/html/._week38-bs019.html
index c8234e504..ab4a754e9 100644
--- a/doc/pub/week38/html/._week38-bs019.html
+++ b/doc/pub/week38/html/._week38-bs019.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -277,7 +275,7 @@ in practice we often supplement the cross-entropy with additional regularization
28
29
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs020.html b/doc/pub/week38/html/._week38-bs020.html
index a8eee0a96..c8ca0f1e6 100644
--- a/doc/pub/week38/html/._week38-bs020.html
+++ b/doc/pub/week38/html/._week38-bs020.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -279,7 +277,7 @@ $$
29
30
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs021.html b/doc/pub/week38/html/._week38-bs021.html
index daac5ae47..aeaddcc88 100644
--- a/doc/pub/week38/html/._week38-bs021.html
+++ b/doc/pub/week38/html/._week38-bs021.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -280,7 +278,7 @@ $$
30
31
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs022.html b/doc/pub/week38/html/._week38-bs022.html
index 64c55fd44..2183ecb3a 100644
--- a/doc/pub/week38/html/._week38-bs022.html
+++ b/doc/pub/week38/html/._week38-bs022.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -272,7 +270,7 @@ $$
31
32
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs023.html b/doc/pub/week38/html/._week38-bs023.html
index 943d7bad2..92460bd82 100644
--- a/doc/pub/week38/html/._week38-bs023.html
+++ b/doc/pub/week38/html/._week38-bs023.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -284,7 +282,7 @@ $$
32
33
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs024.html b/doc/pub/week38/html/._week38-bs024.html
index 0927f9e0d..f3d585f1f 100644
--- a/doc/pub/week38/html/._week38-bs024.html
+++ b/doc/pub/week38/html/._week38-bs024.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -296,7 +294,7 @@ methods.
33
34
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs025.html b/doc/pub/week38/html/._week38-bs025.html
index 5449e772a..a8acf9929 100644
--- a/doc/pub/week38/html/._week38-bs025.html
+++ b/doc/pub/week38/html/._week38-bs025.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -261,7 +259,7 @@ MathJax.Hub.Config({
34
35
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs026.html b/doc/pub/week38/html/._week38-bs026.html
index 06b664b52..5fd0e6c7d 100644
--- a/doc/pub/week38/html/._week38-bs026.html
+++ b/doc/pub/week38/html/._week38-bs026.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -314,7 +312,7 @@ logreg.fit(X_train_scaled, y_train)
35
36
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs027.html b/doc/pub/week38/html/._week38-bs027.html
index 9c3461aad..bb5becf55 100644
--- a/doc/pub/week38/html/._week38-bs027.html
+++ b/doc/pub/week38/html/._week38-bs027.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -321,7 +319,7 @@ plt.show()
36
37
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs028.html b/doc/pub/week38/html/._week38-bs028.html
index d529b3cee..ac98b8d96 100644
--- a/doc/pub/week38/html/._week38-bs028.html
+++ b/doc/pub/week38/html/._week38-bs028.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -329,7 +327,7 @@ applications. This will be discussed later this semester (37
38
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs029.html b/doc/pub/week38/html/._week38-bs029.html
index e0a5c2338..e5254da59 100644
--- a/doc/pub/week38/html/._week38-bs029.html
+++ b/doc/pub/week38/html/._week38-bs029.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -327,7 +325,7 @@ plt.show()
38
39
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs030.html b/doc/pub/week38/html/._week38-bs030.html
index 39a47e6e1..5751878b5 100644
--- a/doc/pub/week38/html/._week38-bs030.html
+++ b/doc/pub/week38/html/._week38-bs030.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -234,7 +232,19 @@ MathJax.Hub.Config({
-Friday September 25
+Optimization, the central part of any Machine Learning algortithm
+
+Overview Video, why do we care about gradient methods?
+
+Almost every problem in machine learning and data science starts with
+a dataset \( X \), a model \( g(\beta) \), which is a function of the
+parameters \( \beta \) and a cost function \( C(X, g(\beta)) \) that allows
+us to judge how well the model \( g(\beta) \) explains the observations
+\( X \). The model is fit by finding the values of \( \beta \) that minimize
+the cost function. Ideally we would be able to solve for \( \beta \)
+analytically, however this is not possible in general and we must use
+some approximative/numerical method to compute the minimum.
+
@@ -261,7 +271,7 @@ MathJax.Hub.Config({
39
40
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/._week38-bs031.html b/doc/pub/week38/html/._week38-bs031.html
index a7c01321c..be0290b7f 100644
--- a/doc/pub/week38/html/._week38-bs031.html
+++ b/doc/pub/week38/html/._week38-bs031.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -234,20 +232,25 @@ MathJax.Hub.Config({
-Optimization, the central part of any Machine Learning algortithm
+Revisiting our Logistic Regression case
-Overview Video, why do we care about gradient methods?
-
-Almost every problem in machine learning and data science starts with
-a dataset \( X \), a model \( g(\beta) \), which is a function of the
-parameters \( \beta \) and a cost function \( C(X, g(\beta)) \) that allows
-us to judge how well the model \( g(\beta) \) explains the observations
-\( X \). The model is fit by finding the values of \( \beta \) that minimize
-the cost function. Ideally we would be able to solve for \( \beta \)
-analytically, however this is not possible in general and we must use
-some approximative/numerical method to compute the minimum.
+
In our discussion on Logistic Regression we studied the
+case of
+two classes, with \( y_i \) either
+\( 0 \) or \( 1 \). Furthermore we assumed also that we have only two
+parameters \( \beta \) in our fitting, that is we
+defined probabilities
+$$
+\begin{align*}
+p(y_i=1|x_i,\boldsymbol{\beta}) &= \frac{\exp{(\beta_0+\beta_1x_i)}}{1+\exp{(\beta_0+\beta_1x_i)}},\nonumber\\
+p(y_i=0|x_i,\boldsymbol{\beta}) &= 1 - p(y_i=1|x_i,\boldsymbol{\beta}),
+\end{align*}
+$$
+
+where \( \boldsymbol{\beta} \) are the weights we wish to extract from data, in our case \( \beta_0 \) and \( \beta_1 \).
+
diff --git a/doc/pub/week38/html/._week38-bs032.html b/doc/pub/week38/html/._week38-bs032.html
index 7c95b1d67..8df35c3c3 100644
--- a/doc/pub/week38/html/._week38-bs032.html
+++ b/doc/pub/week38/html/._week38-bs032.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -234,24 +232,28 @@ MathJax.Hub.Config({
-Revisiting our Logistic Regression case
+The equations to solve
-In our discussion on Logistic Regression we studied the
-case of
-two classes, with \( y_i \) either
-\( 0 \) or \( 1 \). Furthermore we assumed also that we have only two
-parameters \( \beta \) in our fitting, that is we
-defined probabilities
+
Our compact equations used a definition of a vector \( \boldsymbol{y} \) with \( n \)
+elements \( y_i \), an \( n\times p \) matrix \( \boldsymbol{X} \) which contains the
+\( x_i \) values and a vector \( \boldsymbol{p} \) of fitted probabilities
+\( p(y_i\vert x_i,\boldsymbol{\beta}) \). We rewrote in a more compact form
+the first derivative of the cost function as
$$
-\begin{align*}
-p(y_i=1|x_i,\boldsymbol{\beta}) &= \frac{\exp{(\beta_0+\beta_1x_i)}}{1+\exp{(\beta_0+\beta_1x_i)}},\nonumber\\
-p(y_i=0|x_i,\boldsymbol{\beta}) &= 1 - p(y_i=1|x_i,\boldsymbol{\beta}),
-\end{align*}
+\frac{\partial \mathcal{C}(\boldsymbol{\beta})}{\partial \boldsymbol{\beta}} = -\boldsymbol{X}^T\left(\boldsymbol{y}-\boldsymbol{p}\right).
$$
-where \( \boldsymbol{\beta} \) are the weights we wish to extract from data, in our case \( \beta_0 \) and \( \beta_1 \).
+If we in addition define a diagonal matrix \( \boldsymbol{W} \) with elements
+\( p(y_i\vert x_i,\boldsymbol{\beta})(1-p(y_i\vert x_i,\boldsymbol{\beta}) \), we can obtain a compact expression of the second derivative as
+
+
+$$
+\frac{\partial^2 \mathcal{C}(\boldsymbol{\beta})}{\partial \boldsymbol{\beta}\partial \boldsymbol{\beta}^T} = \boldsymbol{X}^T\boldsymbol{W}\boldsymbol{X}.
+$$
+
+This defines what is called the Hessian matrix.
@@ -277,8 +279,6 @@ $$
40
41
42
- ...
- 43
»
diff --git a/doc/pub/week38/html/._week38-bs033.html b/doc/pub/week38/html/._week38-bs033.html
index 8c8df75f2..c4184c30b 100644
--- a/doc/pub/week38/html/._week38-bs033.html
+++ b/doc/pub/week38/html/._week38-bs033.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -234,28 +232,25 @@ MathJax.Hub.Config({
-The equations to solve
+Solving using Newton-Raphson's method
-Our compact equations used a definition of a vector \( \boldsymbol{y} \) with \( n \)
-elements \( y_i \), an \( n\times p \) matrix \( \boldsymbol{X} \) which contains the
-\( x_i \) values and a vector \( \boldsymbol{p} \) of fitted probabilities
-\( p(y_i\vert x_i,\boldsymbol{\beta}) \). We rewrote in a more compact form
-the first derivative of the cost function as
-
+If we can set up these equations, Newton-Raphson's iterative method is normally the method of choice. It requires however that we can compute in an efficient way the matrices that define the first and second derivatives.
+
+Our iterative scheme is then given by
$$
-\frac{\partial \mathcal{C}(\boldsymbol{\beta})}{\partial \boldsymbol{\beta}} = -\boldsymbol{X}^T\left(\boldsymbol{y}-\boldsymbol{p}\right).
+\boldsymbol{\beta}^{\mathrm{new}} = \boldsymbol{\beta}^{\mathrm{old}}-\left(\frac{\partial^2 \mathcal{C}(\boldsymbol{\beta})}{\partial \boldsymbol{\beta}\partial \boldsymbol{\beta}^T}\right)^{-1}_{\boldsymbol{\beta}^{\mathrm{old}}}\times \left(\frac{\partial \mathcal{C}(\boldsymbol{\beta})}{\partial \boldsymbol{\beta}}\right)_{\boldsymbol{\beta}^{\mathrm{old}}},
$$
-If we in addition define a diagonal matrix \( \boldsymbol{W} \) with elements
-\( p(y_i\vert x_i,\boldsymbol{\beta})(1-p(y_i\vert x_i,\boldsymbol{\beta}) \), we can obtain a compact expression of the second derivative as
-
+or in matrix form as
$$
-\frac{\partial^2 \mathcal{C}(\boldsymbol{\beta})}{\partial \boldsymbol{\beta}\partial \boldsymbol{\beta}^T} = \boldsymbol{X}^T\boldsymbol{W}\boldsymbol{X}.
+\boldsymbol{\beta}^{\mathrm{new}} = \boldsymbol{\beta}^{\mathrm{old}}-\left(\boldsymbol{X}^T\boldsymbol{W}\boldsymbol{X} \right)^{-1}\times \left(-\boldsymbol{X}^T(\boldsymbol{y}-\boldsymbol{p}) \right)_{\boldsymbol{\beta}^{\mathrm{old}}}.
$$
-This defines what is called the Hessian matrix.
+The right-hand side is computed with the old values of \( \beta \).
+
+If we can compute these matrices, in particular the Hessian, the above is often the easiest method to implement.
@@ -280,7 +275,6 @@ $$
40
41
42
- 43
»
diff --git a/doc/pub/week38/html/._week38-bs034.html b/doc/pub/week38/html/._week38-bs034.html
index 9feabd083..b223ec106 100644
--- a/doc/pub/week38/html/._week38-bs034.html
+++ b/doc/pub/week38/html/._week38-bs034.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -234,25 +232,18 @@ MathJax.Hub.Config({
-Solving using Newton-Raphson's method
+Brief reminder on Newton-Raphson's method
-If we can set up these equations, Newton-Raphson's iterative method is normally the method of choice. It requires however that we can compute in an efficient way the matrices that define the first and second derivatives.
+Let us quickly remind ourselves how we derive the above method.
-Our iterative scheme is then given by
-
-$$
-\boldsymbol{\beta}^{\mathrm{new}} = \boldsymbol{\beta}^{\mathrm{old}}-\left(\frac{\partial^2 \mathcal{C}(\boldsymbol{\beta})}{\partial \boldsymbol{\beta}\partial \boldsymbol{\beta}^T}\right)^{-1}_{\boldsymbol{\beta}^{\mathrm{old}}}\times \left(\frac{\partial \mathcal{C}(\boldsymbol{\beta})}{\partial \boldsymbol{\beta}}\right)_{\boldsymbol{\beta}^{\mathrm{old}}},
-$$
-
-or in matrix form as
-
-$$
-\boldsymbol{\beta}^{\mathrm{new}} = \boldsymbol{\beta}^{\mathrm{old}}-\left(\boldsymbol{X}^T\boldsymbol{W}\boldsymbol{X} \right)^{-1}\times \left(-\boldsymbol{X}^T(\boldsymbol{y}-\boldsymbol{p}) \right)_{\boldsymbol{\beta}^{\mathrm{old}}}.
-$$
-
-The right-hand side is computed with the old values of \( \beta \).
-
-If we can compute these matrices, in particular the Hessian, the above is often the easiest method to implement.
+Perhaps the most celebrated of all one-dimensional root-finding
+routines is Newton's method, also called the Newton-Raphson
+method. This method requires the evaluation of both the
+function \( f \) and its derivative \( f' \) at arbitrary points.
+If you can only calculate the derivative
+numerically and/or your function is not of the smooth type, we
+normally discourage the use of this method.
+
@@ -276,7 +267,6 @@ $$
40
41
42
- 43
»
diff --git a/doc/pub/week38/html/._week38-bs035.html b/doc/pub/week38/html/._week38-bs035.html
index 9ea7e5542..d2b29e53a 100644
--- a/doc/pub/week38/html/._week38-bs035.html
+++ b/doc/pub/week38/html/._week38-bs035.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -234,19 +232,39 @@ MathJax.Hub.Config({
-Brief reminder on Newton-Raphson's method
+The equations
-Let us quickly remind ourselves how we derive the above method.
-
-Perhaps the most celebrated of all one-dimensional root-finding
-routines is Newton's method, also called the Newton-Raphson
-method. This method requires the evaluation of both the
-function \( f \) and its derivative \( f' \) at arbitrary points.
-If you can only calculate the derivative
-numerically and/or your function is not of the smooth type, we
-normally discourage the use of this method.
+
The Newton-Raphson formula consists geometrically of extending the
+tangent line at a current point until it crosses zero, then setting
+the next guess to the abscissa of that zero-crossing. The mathematics
+behind this method is rather simple. Employing a Taylor expansion for
+\( x \) sufficiently close to the solution \( s \), we have
+$$
+ f(s)=0=f(x)+(s-x)f'(x)+\frac{(s-x)^2}{2}f''(x) +\dots.
+ \tag{2}
+$$
+
+For small enough values of the function and for well-behaved
+functions, the terms beyond linear are unimportant, hence we obtain
+
+
+$$
+ f(x)+(s-x)f'(x)\approx 0,
+$$
+
+yielding
+$$
+ s\approx x-\frac{f(x)}{f'(x)}.
+$$
+
+Having in mind an iterative procedure, it is natural to start iterating with
+$$
+ x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)}.
+$$
+
+
diff --git a/doc/pub/week38/html/._week38-bs036.html b/doc/pub/week38/html/._week38-bs036.html
index 84052c007..34dedcd05 100644
--- a/doc/pub/week38/html/._week38-bs036.html
+++ b/doc/pub/week38/html/._week38-bs036.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -234,39 +232,21 @@ MathJax.Hub.Config({
-The equations
+Simple geometric interpretation
-The Newton-Raphson formula consists geometrically of extending the
-tangent line at a current point until it crosses zero, then setting
-the next guess to the abscissa of that zero-crossing. The mathematics
-behind this method is rather simple. Employing a Taylor expansion for
-\( x \) sufficiently close to the solution \( s \), we have
+
The above is Newton-Raphson's method. It has a simple geometric
+interpretation, namely \( x_{n+1} \) is the point where the tangent from
+\( (x_n,f(x_n)) \) crosses the \( x \)-axis. Close to the solution,
+Newton-Raphson converges fast to the desired result. However, if we
+are far from a root, where the higher-order terms in the series are
+important, the Newton-Raphson formula can give grossly inaccurate
+results. For instance, the initial guess for the root might be so far
+from the true root as to let the search interval include a local
+maximum or minimum of the function. If an iteration places a trial
+guess near such a local extremum, so that the first derivative nearly
+vanishes, then Newton-Raphson may fail totally
-$$
- f(s)=0=f(x)+(s-x)f'(x)+\frac{(s-x)^2}{2}f''(x) +\dots.
- \tag{2}
-$$
-
-For small enough values of the function and for well-behaved
-functions, the terms beyond linear are unimportant, hence we obtain
-
-
-$$
- f(x)+(s-x)f'(x)\approx 0,
-$$
-
-yielding
-$$
- s\approx x-\frac{f(x)}{f'(x)}.
-$$
-
-Having in mind an iterative procedure, it is natural to start iterating with
-$$
- x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)}.
-$$
-
-
diff --git a/doc/pub/week38/html/._week38-bs037.html b/doc/pub/week38/html/._week38-bs037.html
index 97bc41a29..dbbd9e692 100644
--- a/doc/pub/week38/html/._week38-bs037.html
+++ b/doc/pub/week38/html/._week38-bs037.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -234,19 +232,57 @@ MathJax.Hub.Config({
-Simple geometric interpretation
+Extending to more than one variable
-The above is Newton-Raphson's method. It has a simple geometric
-interpretation, namely \( x_{n+1} \) is the point where the tangent from
-\( (x_n,f(x_n)) \) crosses the \( x \)-axis. Close to the solution,
-Newton-Raphson converges fast to the desired result. However, if we
-are far from a root, where the higher-order terms in the series are
-important, the Newton-Raphson formula can give grossly inaccurate
-results. For instance, the initial guess for the root might be so far
-from the true root as to let the search interval include a local
-maximum or minimum of the function. If an iteration places a trial
-guess near such a local extremum, so that the first derivative nearly
-vanishes, then Newton-Raphson may fail totally
+
Newton's method can be generalized to systems of several non-linear equations
+and variables. Consider the case with two equations
+
+$$
+ \begin{array}{cc} f_1(x_1,x_2) &=0\\
+ f_2(x_1,x_2) &=0,\end{array}
+$$
+
+which we Taylor expand to obtain
+
+$$
+ \begin{array}{cc} 0=f_1(x_1+h_1,x_2+h_2)=&f_1(x_1,x_2)+h_1
+ \partial f_1/\partial x_1+h_2
+ \partial f_1/\partial x_2+\dots\\
+ 0=f_2(x_1+h_1,x_2+h_2)=&f_2(x_1,x_2)+h_1
+ \partial f_2/\partial x_1+h_2
+ \partial f_2/\partial x_2+\dots
+ \end{array}.
+$$
+
+Defining the Jacobian matrix \( {\bf \boldsymbol{J}} \) we have
+$$
+ {\bf \boldsymbol{J}}=\left( \begin{array}{cc}
+ \partial f_1/\partial x_1 & \partial f_1/\partial x_2 \\
+ \partial f_2/\partial x_1 &\partial f_2/\partial x_2
+ \end{array} \right),
+$$
+
+we can rephrase Newton's method as
+$$
+\left(\begin{array}{c} x_1^{n+1} \\ x_2^{n+1} \end{array} \right)=
+\left(\begin{array}{c} x_1^{n} \\ x_2^{n} \end{array} \right)+
+\left(\begin{array}{c} h_1^{n} \\ h_2^{n} \end{array} \right),
+$$
+
+where we have defined
+$$
+ \left(\begin{array}{c} h_1^{n} \\ h_2^{n} \end{array} \right)=
+ -{\bf \boldsymbol{J}}^{-1}
+ \left(\begin{array}{c} f_1(x_1^{n},x_2^{n}) \\ f_2(x_1^{n},x_2^{n}) \end{array} \right).
+$$
+
+We need thus to compute the inverse of the Jacobian matrix and it
+is to understand that difficulties may
+arise in case \( {\bf \boldsymbol{J}} \) is nearly singular.
+
+
+It is rather straightforward to extend the above scheme to systems of
+more than two non-linear equations. In our case, the Jacobian matrix is given by the Hessian that represents the second derivative of cost function.
@@ -268,7 +304,6 @@ vanishes, then Newton-Raphson may fail totally
40
41
42
- 43
»
diff --git a/doc/pub/week38/html/._week38-bs038.html b/doc/pub/week38/html/._week38-bs038.html
index 87916bcbf..f1bdd342c 100644
--- a/doc/pub/week38/html/._week38-bs038.html
+++ b/doc/pub/week38/html/._week38-bs038.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -234,57 +232,24 @@ MathJax.Hub.Config({
-Extending to more than one variable
+Steepest descent
-Newton's method can be generalized to systems of several non-linear equations
-and variables. Consider the case with two equations
-
-$$
- \begin{array}{cc} f_1(x_1,x_2) &=0\\
- f_2(x_1,x_2) &=0,\end{array}
-$$
-
-which we Taylor expand to obtain
-
-$$
- \begin{array}{cc} 0=f_1(x_1+h_1,x_2+h_2)=&f_1(x_1,x_2)+h_1
- \partial f_1/\partial x_1+h_2
- \partial f_1/\partial x_2+\dots\\
- 0=f_2(x_1+h_1,x_2+h_2)=&f_2(x_1,x_2)+h_1
- \partial f_2/\partial x_1+h_2
- \partial f_2/\partial x_2+\dots
- \end{array}.
-$$
-
-Defining the Jacobian matrix \( {\bf \boldsymbol{J}} \) we have
-$$
- {\bf \boldsymbol{J}}=\left( \begin{array}{cc}
- \partial f_1/\partial x_1 & \partial f_1/\partial x_2 \\
- \partial f_2/\partial x_1 &\partial f_2/\partial x_2
- \end{array} \right),
-$$
-
-we can rephrase Newton's method as
-$$
-\left(\begin{array}{c} x_1^{n+1} \\ x_2^{n+1} \end{array} \right)=
-\left(\begin{array}{c} x_1^{n} \\ x_2^{n} \end{array} \right)+
-\left(\begin{array}{c} h_1^{n} \\ h_2^{n} \end{array} \right),
-$$
-
-where we have defined
-$$
- \left(\begin{array}{c} h_1^{n} \\ h_2^{n} \end{array} \right)=
- -{\bf \boldsymbol{J}}^{-1}
- \left(\begin{array}{c} f_1(x_1^{n},x_2^{n}) \\ f_2(x_1^{n},x_2^{n}) \end{array} \right).
-$$
-
-We need thus to compute the inverse of the Jacobian matrix and it
-is to understand that difficulties may
-arise in case \( {\bf \boldsymbol{J}} \) is nearly singular.
+
The basic idea of gradient descent is
+that a function \( F(\mathbf{x}) \),
+\( \mathbf{x} \equiv (x_1,\cdots,x_n) \), decreases fastest if one goes from \( \bf {x} \) in the
+direction of the negative gradient \( -\nabla F(\mathbf{x}) \).
-It is rather straightforward to extend the above scheme to systems of
-more than two non-linear equations. In our case, the Jacobian matrix is given by the Hessian that represents the second derivative of cost function.
+
It can be shown that if
+$$
+\mathbf{x}_{k+1} = \mathbf{x}_k - \gamma_k \nabla F(\mathbf{x}_k),
+$$
+
+with \( \gamma_k > 0 \).
+
+For \( \gamma_k \) small enough, then \( F(\mathbf{x}_{k+1}) \leq
+F(\mathbf{x}_k) \). This means that for a sufficiently small \( \gamma_k \)
+we are always moving towards smaller function values, i.e a minimum.
@@ -305,7 +270,6 @@ more than two non-linear equations. In our case, the Jacobian matrix is given by
40
41
42
- 43
»
diff --git a/doc/pub/week38/html/._week38-bs039.html b/doc/pub/week38/html/._week38-bs039.html
index 5991ebc73..837d6c637 100644
--- a/doc/pub/week38/html/._week38-bs039.html
+++ b/doc/pub/week38/html/._week38-bs039.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -233,25 +231,21 @@ MathJax.Hub.Config({
-
-
Steepest descent
+
+
More on Steepest descent
-
The basic idea of gradient descent is
-that a function \( F(\mathbf{x}) \),
-\( \mathbf{x} \equiv (x_1,\cdots,x_n) \), decreases fastest if one goes from \( \bf {x} \) in the
-direction of the negative gradient \( -\nabla F(\mathbf{x}) \).
+
The previous observation is the basis of the method of steepest
+descent, which is also referred to as just gradient descent (GD). One
+starts with an initial guess \( \mathbf{x}_0 \) for a minimum of \( F \) and
+computes new approximations according to
-
It can be shown that if
$$
-\mathbf{x}_{k+1} = \mathbf{x}_k - \gamma_k \nabla F(\mathbf{x}_k),
+\mathbf{x}_{k+1} = \mathbf{x}_k - \gamma_k \nabla F(\mathbf{x}_k), \ \ k \geq 0.
$$
-
with \( \gamma_k > 0 \).
-
-
For \( \gamma_k \) small enough, then \( F(\mathbf{x}_{k+1}) \leq
-F(\mathbf{x}_k) \). This means that for a sufficiently small \( \gamma_k \)
-we are always moving towards smaller function values, i.e a minimum.
+
The parameter \( \gamma_k \) is often referred to as the step length or
+the learning rate within the context of Machine Learning.
@@ -271,7 +265,6 @@ we are always moving towards smaller function values, i.e a minimum.
40
41
42
-
43
»
diff --git a/doc/pub/week38/html/._week38-bs040.html b/doc/pub/week38/html/._week38-bs040.html
index 64f0d1189..53207ded4 100644
--- a/doc/pub/week38/html/._week38-bs040.html
+++ b/doc/pub/week38/html/._week38-bs040.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
-
Friday September 25
-
Optimization, the central part of any Machine Learning algortithm
-
Revisiting our Logistic Regression case
-
The equations to solve
-
Solving using Newton-Raphson's method
-
Brief reminder on Newton-Raphson's method
-
The equations
-
Simple geometric interpretation
-
Extending to more than one variable
-
Steepest descent
-
More on Steepest descent
-
The ideal
-
The sensitiveness of the gradient descent
+
Optimization, the central part of any Machine Learning algortithm
+
Revisiting our Logistic Regression case
+
The equations to solve
+
Solving using Newton-Raphson's method
+
Brief reminder on Newton-Raphson's method
+
The equations
+
Simple geometric interpretation
+
Extending to more than one variable
+
Steepest descent
+
More on Steepest descent
+
The ideal
+
The sensitiveness of the gradient descent
@@ -234,20 +232,27 @@ MathJax.Hub.Config({
-
More on Steepest descent
+
The ideal
-
The previous observation is the basis of the method of steepest
-descent, which is also referred to as just gradient descent (GD). One
-starts with an initial guess \( \mathbf{x}_0 \) for a minimum of \( F \) and
-computes new approximations according to
+
Ideally the sequence \( \{\mathbf{x}_k \}_{k=0} \) converges to a global
+minimum of the function \( F \). In general we do not know if we are in a
+global or local minimum. In the special case when \( F \) is a convex
+function, all local minima are also global minima, so in this case
+gradient descent can converge to the global solution. The advantage of
+this scheme is that it is conceptually simple and straightforward to
+implement. However the method in this form has some severe
+limitations:
-$$
-\mathbf{x}_{k+1} = \mathbf{x}_k - \gamma_k \nabla F(\mathbf{x}_k), \ \ k \geq 0.
-$$
+
In machine learing we are often faced with non-convex high dimensional
+cost functions with many local minima. Since GD is deterministic we
+will get stuck in a local minimum, if the method converges, unless we
+have a very good intial guess. This also implies that the scheme is
+sensitive to the chosen initial condition.
+
-
The parameter \( \gamma_k \) is often referred to as the step length or
-the learning rate within the context of Machine Learning.
+
Note that the gradient is a function of \( \mathbf{x} =
+(x_1,\cdots,x_n) \) which makes it expensive to compute numerically.
@@ -266,7 +271,6 @@ the learning rate within the context of Machine Learning.
40
41
42
-
43
»
diff --git a/doc/pub/week38/html/._week38-bs041.html b/doc/pub/week38/html/._week38-bs041.html
index 89dfdd787..b4098c011 100644
--- a/doc/pub/week38/html/._week38-bs041.html
+++ b/doc/pub/week38/html/._week38-bs041.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
-
Friday September 25
-
Optimization, the central part of any Machine Learning algortithm
-
Revisiting our Logistic Regression case
-
The equations to solve
-
Solving using Newton-Raphson's method
-
Brief reminder on Newton-Raphson's method
-
The equations
-
Simple geometric interpretation
-
Extending to more than one variable
-
Steepest descent
-
More on Steepest descent
-
The ideal
-
The sensitiveness of the gradient descent
+
Optimization, the central part of any Machine Learning algortithm
+
Revisiting our Logistic Regression case
+
The equations to solve
+
Solving using Newton-Raphson's method
+
Brief reminder on Newton-Raphson's method
+
The equations
+
Simple geometric interpretation
+
Extending to more than one variable
+
Steepest descent
+
More on Steepest descent
+
The ideal
+
The sensitiveness of the gradient descent
@@ -234,27 +232,20 @@ MathJax.Hub.Config({
-
The ideal
+
The sensitiveness of the gradient descent
-
Ideally the sequence \( \{\mathbf{x}_k \}_{k=0} \) converges to a global
-minimum of the function \( F \). In general we do not know if we are in a
-global or local minimum. In the special case when \( F \) is a convex
-function, all local minima are also global minima, so in this case
-gradient descent can converge to the global solution. The advantage of
-this scheme is that it is conceptually simple and straightforward to
-implement. However the method in this form has some severe
-limitations:
+
The gradient descent method
+is sensitive to the choice of learning rate \( \gamma_k \). This is due
+to the fact that we are only guaranteed that \( F(\mathbf{x}_{k+1}) \leq
+F(\mathbf{x}_k) \) for sufficiently small \( \gamma_k \). The problem is to
+determine an optimal learning rate. If the learning rate is chosen too
+small the method will take a long time to converge and if it is too
+large we can experience erratic behavior.
-
In machine learing we are often faced with non-convex high dimensional
-cost functions with many local minima. Since GD is deterministic we
-will get stuck in a local minimum, if the method converges, unless we
-have a very good intial guess. This also implies that the scheme is
-sensitive to the chosen initial condition.
-
-
-
Note that the gradient is a function of \( \mathbf{x} =
-(x_1,\cdots,x_n) \) which makes it expensive to compute numerically.
+
Many of these shortcomings can be alleviated by introducing
+randomness. One such method is that of Stochastic Gradient Descent
+(SGD), see below.
@@ -272,8 +263,6 @@ sensitive to the chosen initial condition.
40
41
42
-
43
-
»
diff --git a/doc/pub/week38/html/week38-bs.html b/doc/pub/week38/html/week38-bs.html
index 4888028fe..72a3d698d 100644
--- a/doc/pub/week38/html/week38-bs.html
+++ b/doc/pub/week38/html/week38-bs.html
@@ -112,7 +112,6 @@ doconce format html week38.do.txt --html_style=bootstrap --pygments_html_style=d
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -210,19 +209,18 @@ MathJax.Hub.Config({
Using the correlation matrix
Discussing the correlation data
Other measures in classification studies: Cancer Data again
- Friday September 25
- Optimization, the central part of any Machine Learning algortithm
- Revisiting our Logistic Regression case
- The equations to solve
- Solving using Newton-Raphson's method
- Brief reminder on Newton-Raphson's method
- The equations
- Simple geometric interpretation
- Extending to more than one variable
- Steepest descent
- More on Steepest descent
- The ideal
- The sensitiveness of the gradient descent
+ Optimization, the central part of any Machine Learning algortithm
+ Revisiting our Logistic Regression case
+ The equations to solve
+ Solving using Newton-Raphson's method
+ Brief reminder on Newton-Raphson's method
+ The equations
+ Simple geometric interpretation
+ Extending to more than one variable
+ Steepest descent
+ More on Steepest descent
+ The ideal
+ The sensitiveness of the gradient descent
@@ -277,7 +275,7 @@ MathJax.Hub.Config({
9
10
...
- 43
+ 42
»
diff --git a/doc/pub/week38/html/week38-reveal.html b/doc/pub/week38/html/week38-reveal.html
index 99995e895..42a926b75 100644
--- a/doc/pub/week38/html/week38-reveal.html
+++ b/doc/pub/week38/html/week38-reveal.html
@@ -199,7 +199,7 @@ MathJax.Hub.Config({
- Lab Wednesday and Thursday: work on project 1
-- Thursday: Summary of regression methods, cross-validation and discussion of project 1. Start Logistic Regression Video of lecture
+- Thursday: Summary of regression methods, cross-validation and discussion of project 1. Start Logistic Regression Video of lecture Video on Bootstrapping
- Friday: Classification problems and Logistic Regression, from binary cases to several categories. Start optimization methods
- Reading recommendations:
@@ -1328,10 +1328,6 @@ plt.show()
-
-
Optimization, the central part of any Machine Learning algortithm
diff --git a/doc/pub/week38/html/week38-solarized.html b/doc/pub/week38/html/week38-solarized.html
index 36770a048..839f2af20 100644
--- a/doc/pub/week38/html/week38-solarized.html
+++ b/doc/pub/week38/html/week38-solarized.html
@@ -113,7 +113,6 @@ div.toc p,a {
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -194,7 +193,7 @@ MathJax.Hub.Config({
- Lab Wednesday and Thursday: work on project 1
-- Thursday: Summary of regression methods, cross-validation and discussion of project 1. Start Logistic Regression Video of lecture
+- Thursday: Summary of regression methods, cross-validation and discussion of project 1. Start Logistic Regression Video of lecture Video on Bootstrapping
- Friday: Classification problems and Logistic Regression, from binary cases to several categories. Start optimization methods
- Reading recommendations:
@@ -1243,9 +1242,6 @@ plt.show()
-
-Friday September 25
-
Optimization, the central part of any Machine Learning algortithm
diff --git a/doc/pub/week38/html/week38.html b/doc/pub/week38/html/week38.html
index f2d9d8ead..ea25103ed 100644
--- a/doc/pub/week38/html/week38.html
+++ b/doc/pub/week38/html/week38.html
@@ -190,7 +190,6 @@ div.toc p,a {
2,
None,
'other-measures-in-classification-studies-cancer-data-again'),
- ('Friday September 25', 2, None, 'friday-september-25'),
('Optimization, the central part of any Machine Learning '
'algortithm',
2,
@@ -271,7 +270,7 @@ MathJax.Hub.Config({
- Lab Wednesday and Thursday: work on project 1
-- Thursday: Summary of regression methods, cross-validation and discussion of project 1. Start Logistic Regression Video of lecture
+- Thursday: Summary of regression methods, cross-validation and discussion of project 1. Start Logistic Regression Video of lecture Video on Bootstrapping
- Friday: Classification problems and Logistic Regression, from binary cases to several categories. Start optimization methods
- Reading recommendations:
@@ -1320,9 +1319,6 @@ plt.show()
-
-Friday September 25
-
Optimization, the central part of any Machine Learning algortithm
diff --git a/doc/pub/week38/ipynb/ipynb-week38-src.tar.gz b/doc/pub/week38/ipynb/ipynb-week38-src.tar.gz
index 828cd95dc..319093a93 100644
Binary files a/doc/pub/week38/ipynb/ipynb-week38-src.tar.gz and b/doc/pub/week38/ipynb/ipynb-week38-src.tar.gz differ
diff --git a/doc/pub/week38/ipynb/week38.ipynb b/doc/pub/week38/ipynb/week38.ipynb
index b8f3e4450..31447bdf8 100644
--- a/doc/pub/week38/ipynb/week38.ipynb
+++ b/doc/pub/week38/ipynb/week38.ipynb
@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
- "id": "877dea8a",
+ "id": "01f9b9a8",
"metadata": {
"editable": true
},
@@ -14,7 +14,7 @@
},
{
"cell_type": "markdown",
- "id": "4cb5bf43",
+ "id": "9b2d584e",
"metadata": {
"editable": true
},
@@ -27,7 +27,7 @@
},
{
"cell_type": "markdown",
- "id": "57dd0b9f",
+ "id": "54a98e9e",
"metadata": {
"editable": true
},
@@ -36,7 +36,7 @@
"\n",
"* Lab Wednesday and Thursday: work on project 1\n",
"\n",
- "* Thursday: Summary of regression methods, cross-validation and discussion of project 1. Start Logistic Regression [Video of lecture](https://youtu.be/sdt_BFla8uA)\n",
+ "* Thursday: Summary of regression methods, cross-validation and discussion of project 1. Start Logistic Regression [Video of lecture](https://youtu.be/sdt_BFla8uA) [Video on Bootstrapping](https://www.youtube.com/watch?v=Xz0x-8-cgaQ)\n",
"\n",
"* Friday: Classification problems and Logistic Regression, from binary cases to several categories. Start optimization methods\n",
"\n",
@@ -53,7 +53,7 @@
},
{
"cell_type": "markdown",
- "id": "5ab41e7c",
+ "id": "225cc16b",
"metadata": {
"editable": true
},
@@ -66,7 +66,7 @@
},
{
"cell_type": "markdown",
- "id": "c93b1367",
+ "id": "00778aeb",
"metadata": {
"editable": true
},
@@ -78,7 +78,7 @@
},
{
"cell_type": "markdown",
- "id": "c930b886",
+ "id": "db5375f9",
"metadata": {
"editable": true
},
@@ -88,7 +88,7 @@
},
{
"cell_type": "markdown",
- "id": "9336ad4e",
+ "id": "27cb052e",
"metadata": {
"editable": true
},
@@ -101,7 +101,7 @@
},
{
"cell_type": "markdown",
- "id": "300ccd68",
+ "id": "b450e9b7",
"metadata": {
"editable": true
},
@@ -111,7 +111,7 @@
},
{
"cell_type": "markdown",
- "id": "7caed49a",
+ "id": "5e51429a",
"metadata": {
"editable": true
},
@@ -123,7 +123,7 @@
},
{
"cell_type": "markdown",
- "id": "65a739f2",
+ "id": "6fd9ad2f",
"metadata": {
"editable": true
},
@@ -136,7 +136,7 @@
},
{
"cell_type": "markdown",
- "id": "c309f271",
+ "id": "059b5eb9",
"metadata": {
"editable": true
},
@@ -149,7 +149,7 @@
},
{
"cell_type": "markdown",
- "id": "04715c07",
+ "id": "abbf7bb7",
"metadata": {
"editable": true
},
@@ -161,7 +161,7 @@
},
{
"cell_type": "markdown",
- "id": "6b355785",
+ "id": "63c1d4d3",
"metadata": {
"editable": true
},
@@ -173,7 +173,7 @@
},
{
"cell_type": "markdown",
- "id": "7e878d37",
+ "id": "3f61ae35",
"metadata": {
"editable": true
},
@@ -183,7 +183,7 @@
},
{
"cell_type": "markdown",
- "id": "35b8288a",
+ "id": "b7470206",
"metadata": {
"editable": true
},
@@ -196,7 +196,7 @@
},
{
"cell_type": "markdown",
- "id": "ccb1e72d",
+ "id": "0027c09f",
"metadata": {
"editable": true
},
@@ -208,7 +208,7 @@
},
{
"cell_type": "markdown",
- "id": "5f462a77",
+ "id": "e6ccfab9",
"metadata": {
"editable": true
},
@@ -220,7 +220,7 @@
},
{
"cell_type": "markdown",
- "id": "9a83404f",
+ "id": "1493e160",
"metadata": {
"editable": true
},
@@ -245,7 +245,7 @@
},
{
"cell_type": "markdown",
- "id": "83addf19",
+ "id": "f03473f8",
"metadata": {
"editable": true
},
@@ -261,7 +261,7 @@
},
{
"cell_type": "markdown",
- "id": "133d9fd0",
+ "id": "5572797b",
"metadata": {
"editable": true
},
@@ -277,7 +277,7 @@
},
{
"cell_type": "markdown",
- "id": "db67f161",
+ "id": "3c7c5728",
"metadata": {
"editable": true
},
@@ -291,7 +291,7 @@
},
{
"cell_type": "markdown",
- "id": "1fe7276e",
+ "id": "01c9d597",
"metadata": {
"editable": true
},
@@ -319,7 +319,7 @@
},
{
"cell_type": "markdown",
- "id": "90ddb950",
+ "id": "a8bfb686",
"metadata": {
"editable": true
},
@@ -332,7 +332,7 @@
{
"cell_type": "code",
"execution_count": 1,
- "id": "31635b75",
+ "id": "7dd3414e",
"metadata": {
"collapsed": false,
"editable": true
@@ -434,7 +434,7 @@
},
{
"cell_type": "markdown",
- "id": "58525535",
+ "id": "04bcdf5c",
"metadata": {
"editable": true
},
@@ -456,7 +456,7 @@
},
{
"cell_type": "markdown",
- "id": "fd23a15f",
+ "id": "793b68ca",
"metadata": {
"editable": true
},
@@ -482,7 +482,7 @@
},
{
"cell_type": "markdown",
- "id": "f82d103a",
+ "id": "421b431d",
"metadata": {
"editable": true
},
@@ -506,7 +506,7 @@
},
{
"cell_type": "markdown",
- "id": "5b334bd9",
+ "id": "330d1095",
"metadata": {
"editable": true
},
@@ -531,7 +531,7 @@
},
{
"cell_type": "markdown",
- "id": "6d6f3024",
+ "id": "22896257",
"metadata": {
"editable": true
},
@@ -543,7 +543,7 @@
},
{
"cell_type": "markdown",
- "id": "f3f36550",
+ "id": "ecec9745",
"metadata": {
"editable": true
},
@@ -561,7 +561,7 @@
},
{
"cell_type": "markdown",
- "id": "a0babb3b",
+ "id": "9a5f3982",
"metadata": {
"editable": true
},
@@ -579,7 +579,7 @@
},
{
"cell_type": "markdown",
- "id": "e0f9f86f",
+ "id": "c0796f73",
"metadata": {
"editable": true
},
@@ -590,7 +590,7 @@
},
{
"cell_type": "markdown",
- "id": "0c4e33d0",
+ "id": "8ab40120",
"metadata": {
"editable": true
},
@@ -617,7 +617,7 @@
},
{
"cell_type": "markdown",
- "id": "f375e3b0",
+ "id": "309efb94",
"metadata": {
"editable": true
},
@@ -630,7 +630,7 @@
{
"cell_type": "code",
"execution_count": 2,
- "id": "06a5d637",
+ "id": "c9ff5bb6",
"metadata": {
"collapsed": false,
"editable": true
@@ -695,7 +695,7 @@
},
{
"cell_type": "markdown",
- "id": "e1bc5710",
+ "id": "5a81b6f7",
"metadata": {
"editable": true
},
@@ -708,7 +708,7 @@
{
"cell_type": "code",
"execution_count": 3,
- "id": "a96fd8e6",
+ "id": "56a13162",
"metadata": {
"collapsed": false,
"editable": true
@@ -727,7 +727,7 @@
},
{
"cell_type": "markdown",
- "id": "8aadaa8c",
+ "id": "19f4d949",
"metadata": {
"editable": true
},
@@ -738,7 +738,7 @@
},
{
"cell_type": "markdown",
- "id": "c1ed1f2d",
+ "id": "b9201e8e",
"metadata": {
"editable": true
},
@@ -750,7 +750,7 @@
},
{
"cell_type": "markdown",
- "id": "dc708799",
+ "id": "6670cac7",
"metadata": {
"editable": true
},
@@ -769,7 +769,7 @@
},
{
"cell_type": "markdown",
- "id": "deb66eaf",
+ "id": "d0d49800",
"metadata": {
"editable": true
},
@@ -791,7 +791,7 @@
},
{
"cell_type": "markdown",
- "id": "5eab3f55",
+ "id": "501a7228",
"metadata": {
"editable": true
},
@@ -803,7 +803,7 @@
},
{
"cell_type": "markdown",
- "id": "2cfaf9ba",
+ "id": "7e80acdf",
"metadata": {
"editable": true
},
@@ -813,7 +813,7 @@
},
{
"cell_type": "markdown",
- "id": "5602a876",
+ "id": "9c679fb8",
"metadata": {
"editable": true
},
@@ -826,7 +826,7 @@
{
"cell_type": "code",
"execution_count": 4,
- "id": "bebd570c",
+ "id": "8d9b966d",
"metadata": {
"collapsed": false,
"editable": true
@@ -891,7 +891,7 @@
},
{
"cell_type": "markdown",
- "id": "f183282e",
+ "id": "b51bf67c",
"metadata": {
"editable": true
},
@@ -903,7 +903,7 @@
},
{
"cell_type": "markdown",
- "id": "d7a2faec",
+ "id": "1c51a404",
"metadata": {
"editable": true
},
@@ -918,7 +918,7 @@
},
{
"cell_type": "markdown",
- "id": "d78e34c0",
+ "id": "cbf6af49",
"metadata": {
"editable": true
},
@@ -930,7 +930,7 @@
},
{
"cell_type": "markdown",
- "id": "e6c5c790",
+ "id": "33d715da",
"metadata": {
"editable": true
},
@@ -942,7 +942,7 @@
},
{
"cell_type": "markdown",
- "id": "5e4acb48",
+ "id": "4d84e4e9",
"metadata": {
"editable": true
},
@@ -959,7 +959,7 @@
},
{
"cell_type": "markdown",
- "id": "5fcb0159",
+ "id": "5a082750",
"metadata": {
"editable": true
},
@@ -973,7 +973,7 @@
},
{
"cell_type": "markdown",
- "id": "d3b03302",
+ "id": "b428d69d",
"metadata": {
"editable": true
},
@@ -983,7 +983,7 @@
},
{
"cell_type": "markdown",
- "id": "c4105ebe",
+ "id": "e6c999a2",
"metadata": {
"editable": true
},
@@ -995,7 +995,7 @@
},
{
"cell_type": "markdown",
- "id": "686ff507",
+ "id": "4fff502a",
"metadata": {
"editable": true
},
@@ -1007,7 +1007,7 @@
},
{
"cell_type": "markdown",
- "id": "3889f853",
+ "id": "70a31849",
"metadata": {
"editable": true
},
@@ -1019,7 +1019,7 @@
},
{
"cell_type": "markdown",
- "id": "a9eab992",
+ "id": "d55b6884",
"metadata": {
"editable": true
},
@@ -1030,7 +1030,7 @@
},
{
"cell_type": "markdown",
- "id": "ca1d0b7c",
+ "id": "ed38348a",
"metadata": {
"editable": true
},
@@ -1042,7 +1042,7 @@
},
{
"cell_type": "markdown",
- "id": "b39a640a",
+ "id": "3490a7db",
"metadata": {
"editable": true
},
@@ -1053,7 +1053,7 @@
},
{
"cell_type": "markdown",
- "id": "c4d33ac9",
+ "id": "b4ccac01",
"metadata": {
"editable": true
},
@@ -1069,7 +1069,7 @@
},
{
"cell_type": "markdown",
- "id": "6fbc0427",
+ "id": "9a34f855",
"metadata": {
"editable": true
},
@@ -1081,7 +1081,7 @@
},
{
"cell_type": "markdown",
- "id": "5baf7aa8",
+ "id": "ce050728",
"metadata": {
"editable": true
},
@@ -1091,7 +1091,7 @@
},
{
"cell_type": "markdown",
- "id": "4613bedf",
+ "id": "09414ce2",
"metadata": {
"editable": true
},
@@ -1103,7 +1103,7 @@
},
{
"cell_type": "markdown",
- "id": "d30b5329",
+ "id": "65034766",
"metadata": {
"editable": true
},
@@ -1118,7 +1118,7 @@
},
{
"cell_type": "markdown",
- "id": "91a01f8c",
+ "id": "cd0ed2fc",
"metadata": {
"editable": true
},
@@ -1130,7 +1130,7 @@
},
{
"cell_type": "markdown",
- "id": "85acea2e",
+ "id": "49672afd",
"metadata": {
"editable": true
},
@@ -1141,7 +1141,7 @@
},
{
"cell_type": "markdown",
- "id": "c25ba78b",
+ "id": "c374232e",
"metadata": {
"editable": true
},
@@ -1153,7 +1153,7 @@
},
{
"cell_type": "markdown",
- "id": "dab3def5",
+ "id": "5af3f525",
"metadata": {
"editable": true
},
@@ -1165,7 +1165,7 @@
},
{
"cell_type": "markdown",
- "id": "406fdc28",
+ "id": "475962a3",
"metadata": {
"editable": true
},
@@ -1177,7 +1177,7 @@
},
{
"cell_type": "markdown",
- "id": "65bb924d",
+ "id": "a06c5f81",
"metadata": {
"editable": true
},
@@ -1187,7 +1187,7 @@
},
{
"cell_type": "markdown",
- "id": "9b7ae19a",
+ "id": "6f5c6473",
"metadata": {
"editable": true
},
@@ -1199,7 +1199,7 @@
},
{
"cell_type": "markdown",
- "id": "e8daf61c",
+ "id": "b02ad88e",
"metadata": {
"editable": true
},
@@ -1213,7 +1213,7 @@
},
{
"cell_type": "markdown",
- "id": "ed651434",
+ "id": "7eb3fa57",
"metadata": {
"editable": true
},
@@ -1225,7 +1225,7 @@
},
{
"cell_type": "markdown",
- "id": "8606fcc9",
+ "id": "9ca19d51",
"metadata": {
"editable": true
},
@@ -1235,7 +1235,7 @@
},
{
"cell_type": "markdown",
- "id": "5b677776",
+ "id": "3b71224c",
"metadata": {
"editable": true
},
@@ -1247,7 +1247,7 @@
},
{
"cell_type": "markdown",
- "id": "ed3e17f5",
+ "id": "16bcf436",
"metadata": {
"editable": true
},
@@ -1257,7 +1257,7 @@
},
{
"cell_type": "markdown",
- "id": "5a0b7eef",
+ "id": "36612ae6",
"metadata": {
"editable": true
},
@@ -1269,7 +1269,7 @@
},
{
"cell_type": "markdown",
- "id": "3e5bccbb",
+ "id": "d954f69b",
"metadata": {
"editable": true
},
@@ -1280,7 +1280,7 @@
},
{
"cell_type": "markdown",
- "id": "6eed19aa",
+ "id": "8b3327c4",
"metadata": {
"editable": true
},
@@ -1303,7 +1303,7 @@
},
{
"cell_type": "markdown",
- "id": "99fe1e5d",
+ "id": "de7c9ae7",
"metadata": {
"editable": true
},
@@ -1315,7 +1315,7 @@
},
{
"cell_type": "markdown",
- "id": "2b764646",
+ "id": "218e5036",
"metadata": {
"editable": true
},
@@ -1325,7 +1325,7 @@
},
{
"cell_type": "markdown",
- "id": "b704c996",
+ "id": "a14de229",
"metadata": {
"editable": true
},
@@ -1337,7 +1337,7 @@
},
{
"cell_type": "markdown",
- "id": "9211a624",
+ "id": "a5320746",
"metadata": {
"editable": true
},
@@ -1354,7 +1354,7 @@
},
{
"cell_type": "markdown",
- "id": "2e59571f",
+ "id": "2e8bc59a",
"metadata": {
"editable": true
},
@@ -1364,7 +1364,7 @@
},
{
"cell_type": "markdown",
- "id": "b37cab3e",
+ "id": "2b4d2b1f",
"metadata": {
"editable": true
},
@@ -1379,7 +1379,7 @@
{
"cell_type": "code",
"execution_count": 5,
- "id": "73736363",
+ "id": "55f63368",
"metadata": {
"collapsed": false,
"editable": true
@@ -1415,7 +1415,7 @@
},
{
"cell_type": "markdown",
- "id": "8973213d",
+ "id": "0bd96349",
"metadata": {
"editable": true
},
@@ -1429,7 +1429,7 @@
{
"cell_type": "code",
"execution_count": 6,
- "id": "f7c8ba58",
+ "id": "316d64e8",
"metadata": {
"collapsed": false,
"editable": true
@@ -1474,7 +1474,7 @@
},
{
"cell_type": "markdown",
- "id": "84b88096",
+ "id": "a334759c",
"metadata": {
"editable": true
},
@@ -1499,7 +1499,7 @@
{
"cell_type": "code",
"execution_count": 7,
- "id": "f09d77e3",
+ "id": "93302b72",
"metadata": {
"collapsed": false,
"editable": true
@@ -1511,7 +1511,7 @@
},
{
"cell_type": "markdown",
- "id": "7a689e11",
+ "id": "71d73535",
"metadata": {
"editable": true
},
@@ -1522,7 +1522,7 @@
{
"cell_type": "code",
"execution_count": 8,
- "id": "ddcf4f7e",
+ "id": "84ce38f5",
"metadata": {
"collapsed": false,
"editable": true
@@ -1534,7 +1534,7 @@
},
{
"cell_type": "markdown",
- "id": "51dba7d1",
+ "id": "14f81ffb",
"metadata": {
"editable": true
},
@@ -1547,7 +1547,7 @@
},
{
"cell_type": "markdown",
- "id": "4bc70b4e",
+ "id": "88524ac4",
"metadata": {
"editable": true
},
@@ -1558,7 +1558,7 @@
{
"cell_type": "code",
"execution_count": 9,
- "id": "c8cc320e",
+ "id": "a158ed70",
"metadata": {
"collapsed": false,
"editable": true
@@ -1613,17 +1613,7 @@
},
{
"cell_type": "markdown",
- "id": "892e3254",
- "metadata": {
- "editable": true
- },
- "source": [
- "## Friday September 25"
- ]
- },
- {
- "cell_type": "markdown",
- "id": "6ed29afd",
+ "id": "cc5dd2e0",
"metadata": {
"editable": true
},
@@ -1644,7 +1634,7 @@
},
{
"cell_type": "markdown",
- "id": "89adf3c9",
+ "id": "7e06a234",
"metadata": {
"editable": true
},
@@ -1661,7 +1651,7 @@
},
{
"cell_type": "markdown",
- "id": "05fe738b",
+ "id": "009644a6",
"metadata": {
"editable": true
},
@@ -1676,7 +1666,7 @@
},
{
"cell_type": "markdown",
- "id": "9f3c76cf",
+ "id": "2f7d0511",
"metadata": {
"editable": true
},
@@ -1686,7 +1676,7 @@
},
{
"cell_type": "markdown",
- "id": "d22d494a",
+ "id": "b4e7310e",
"metadata": {
"editable": true
},
@@ -1702,7 +1692,7 @@
},
{
"cell_type": "markdown",
- "id": "01fd9d57",
+ "id": "024b05ac",
"metadata": {
"editable": true
},
@@ -1714,7 +1704,7 @@
},
{
"cell_type": "markdown",
- "id": "7ca1d957",
+ "id": "e2186ca7",
"metadata": {
"editable": true
},
@@ -1725,7 +1715,7 @@
},
{
"cell_type": "markdown",
- "id": "43918ffd",
+ "id": "e6b5e00a",
"metadata": {
"editable": true
},
@@ -1737,7 +1727,7 @@
},
{
"cell_type": "markdown",
- "id": "a3dfa9ac",
+ "id": "39688a20",
"metadata": {
"editable": true
},
@@ -1747,7 +1737,7 @@
},
{
"cell_type": "markdown",
- "id": "93c4877e",
+ "id": "ec69bb49",
"metadata": {
"editable": true
},
@@ -1761,7 +1751,7 @@
},
{
"cell_type": "markdown",
- "id": "2e281ee4",
+ "id": "a9843445",
"metadata": {
"editable": true
},
@@ -1773,7 +1763,7 @@
},
{
"cell_type": "markdown",
- "id": "37f01359",
+ "id": "2ce9f333",
"metadata": {
"editable": true
},
@@ -1783,7 +1773,7 @@
},
{
"cell_type": "markdown",
- "id": "a482d3de",
+ "id": "2e2053a4",
"metadata": {
"editable": true
},
@@ -1795,7 +1785,7 @@
},
{
"cell_type": "markdown",
- "id": "de980205",
+ "id": "36e5c401",
"metadata": {
"editable": true
},
@@ -1807,7 +1797,7 @@
},
{
"cell_type": "markdown",
- "id": "62ee83b4",
+ "id": "598f01a4",
"metadata": {
"editable": true
},
@@ -1827,7 +1817,7 @@
},
{
"cell_type": "markdown",
- "id": "2f827dcd",
+ "id": "9aa04bc4",
"metadata": {
"editable": true
},
@@ -1843,7 +1833,7 @@
},
{
"cell_type": "markdown",
- "id": "f8905ede",
+ "id": "68fc4862",
"metadata": {
"editable": true
},
@@ -1859,7 +1849,7 @@
},
{
"cell_type": "markdown",
- "id": "3aae5fc7",
+ "id": "80682dbe",
"metadata": {
"editable": true
},
@@ -1870,7 +1860,7 @@
},
{
"cell_type": "markdown",
- "id": "1cd60615",
+ "id": "960c62bb",
"metadata": {
"editable": true
},
@@ -1882,7 +1872,7 @@
},
{
"cell_type": "markdown",
- "id": "0ab2920c",
+ "id": "54236f7d",
"metadata": {
"editable": true
},
@@ -1892,7 +1882,7 @@
},
{
"cell_type": "markdown",
- "id": "102e22cd",
+ "id": "95a844a7",
"metadata": {
"editable": true
},
@@ -1904,7 +1894,7 @@
},
{
"cell_type": "markdown",
- "id": "e6c2e6a9",
+ "id": "63603bc3",
"metadata": {
"editable": true
},
@@ -1914,7 +1904,7 @@
},
{
"cell_type": "markdown",
- "id": "815f26ac",
+ "id": "d53e2b6f",
"metadata": {
"editable": true
},
@@ -1926,7 +1916,7 @@
},
{
"cell_type": "markdown",
- "id": "11b8a074",
+ "id": "969ecf1e",
"metadata": {
"editable": true
},
@@ -1948,7 +1938,7 @@
},
{
"cell_type": "markdown",
- "id": "f8b0c0c2",
+ "id": "c2086b82",
"metadata": {
"editable": true
},
@@ -1961,7 +1951,7 @@
},
{
"cell_type": "markdown",
- "id": "7748bb6e",
+ "id": "e91068bc",
"metadata": {
"editable": true
},
@@ -1974,7 +1964,7 @@
},
{
"cell_type": "markdown",
- "id": "9f6a5e2b",
+ "id": "580a218c",
"metadata": {
"editable": true
},
@@ -1984,7 +1974,7 @@
},
{
"cell_type": "markdown",
- "id": "08837bac",
+ "id": "7a1f9d80",
"metadata": {
"editable": true
},
@@ -2002,7 +1992,7 @@
},
{
"cell_type": "markdown",
- "id": "1c202345",
+ "id": "f107bea2",
"metadata": {
"editable": true
},
@@ -2012,7 +2002,7 @@
},
{
"cell_type": "markdown",
- "id": "6ff02742",
+ "id": "a590a21f",
"metadata": {
"editable": true
},
@@ -2027,7 +2017,7 @@
},
{
"cell_type": "markdown",
- "id": "ac23e197",
+ "id": "53ed5eef",
"metadata": {
"editable": true
},
@@ -2037,7 +2027,7 @@
},
{
"cell_type": "markdown",
- "id": "b287aa32",
+ "id": "10d5b0d4",
"metadata": {
"editable": true
},
@@ -2051,7 +2041,7 @@
},
{
"cell_type": "markdown",
- "id": "9ffd750a",
+ "id": "892162ee",
"metadata": {
"editable": true
},
@@ -2061,7 +2051,7 @@
},
{
"cell_type": "markdown",
- "id": "fbe28370",
+ "id": "bf468d83",
"metadata": {
"editable": true
},
@@ -2075,7 +2065,7 @@
},
{
"cell_type": "markdown",
- "id": "41f96bfe",
+ "id": "974a49d8",
"metadata": {
"editable": true
},
@@ -2090,7 +2080,7 @@
},
{
"cell_type": "markdown",
- "id": "5856a602",
+ "id": "71eed422",
"metadata": {
"editable": true
},
@@ -2107,7 +2097,7 @@
},
{
"cell_type": "markdown",
- "id": "779f8888",
+ "id": "d9842711",
"metadata": {
"editable": true
},
@@ -2119,7 +2109,7 @@
},
{
"cell_type": "markdown",
- "id": "f11bb7b7",
+ "id": "7c1fb5fe",
"metadata": {
"editable": true
},
@@ -2133,7 +2123,7 @@
},
{
"cell_type": "markdown",
- "id": "1dc6e7fb",
+ "id": "d17bc954",
"metadata": {
"editable": true
},
@@ -2148,7 +2138,7 @@
},
{
"cell_type": "markdown",
- "id": "a002ea53",
+ "id": "ee6cf8aa",
"metadata": {
"editable": true
},
@@ -2160,7 +2150,7 @@
},
{
"cell_type": "markdown",
- "id": "9f8dceae",
+ "id": "b6da9be5",
"metadata": {
"editable": true
},
@@ -2171,7 +2161,7 @@
},
{
"cell_type": "markdown",
- "id": "6207bafe",
+ "id": "0df5d09e",
"metadata": {
"editable": true
},
@@ -2199,7 +2189,7 @@
},
{
"cell_type": "markdown",
- "id": "060f1c07",
+ "id": "d33c17a9",
"metadata": {
"editable": true
},
diff --git a/doc/src/week38/week38.do.txt b/doc/src/week38/week38.do.txt
index 540917ab2..03503aa70 100644
--- a/doc/src/week38/week38.do.txt
+++ b/doc/src/week38/week38.do.txt
@@ -12,6 +12,7 @@ DATE: September 22 and 23
* Lab Wednesday and Thursday: work on project 1
* Thursday: Summary of regression methods, cross-validation and discussion of project 1. Start Logistic Regression
"Video of lecture":"https://youtu.be/sdt_BFla8uA"
+ "Video on Bootstrapping":"https://www.youtube.com/watch?v=Xz0x-8-cgaQ"
* Friday: Classification problems and Logistic Regression, from binary cases to several categories. Start optimization methods
* Reading recommendations:
@@ -906,11 +907,6 @@ plt.show()
!ec
-!split
-===== Friday September 25 =====
-
-
-
!split
===== Optimization, the central part of any Machine Learning algortithm =====