update week 35

This commit is contained in:
Morten Hjorth-Jensen
2021-08-26 09:45:37 +02:00
parent f373c9bed0
commit f304f97b0f
41 changed files with 886 additions and 47 deletions
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+8 -1
View File
@@ -144,6 +144,7 @@ Automatically generated HTML file from DocOnce source
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -151,7 +152,11 @@ Automatically generated HTML file from DocOnce source
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -232,8 +237,10 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week34-bs038.html#seeing-the-wood-for-the-trees" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Seeing the wood for the trees</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#and-what-about-using-neural-networks" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;And what about using neural networks?</a></li>
<!-- navigation toc: --> <li><a href="._week34-bs038.html#a-first-summary" style="font-size: 80%;"><b>A first summary</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercises-for-week-36" style="font-size: 80%;"><b>Exercises for week 36</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-1-setting-up-various-python-environments" style="font-size: 80%;"><b>Exercise 1: Setting up various Python environments</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-2-making-your-own-data-and-exploring-scikit-learn" style="font-size: 80%;"><b>Exercise 2: making your own data and exploring scikit-learn</b></a></li>
<!-- navigation toc: --> <li><a href="._week34-bs039.html#exercise-3-normalizing-our-data" style="font-size: 80%;"><b>Exercise 3: Normalizing our data</b></a></li>
</ul>
</li>
+115 -2
View File
@@ -2175,6 +2175,8 @@ Now it is time to dive more into the details of various methods. We will start w
<section>
<h2 id="exercises-for-week-36">Exercises for week 36 </h2>
Here are three possible exercises for week 36 and the lab sessions of Wednesday September 1..
<p>
<!-- --- begin exercise --- -->
@@ -2262,7 +2264,7 @@ analysis environment, available for free and under a commercial
license.
<p>
We recommend using <b>Anaconda</b>.
We recommend using <b>Anaconda</b> if you are not too familiar with setting paths in a terminal environment.
<p>
<!-- --- end exercise --- -->
@@ -2282,7 +2284,7 @@ The following simple Python instructions define our \( x \) and \( y \) values (
y = <span style="color: #B452CD">2.0</span>+<span style="color: #B452CD">5</span>*x*x+<span style="color: #B452CD">0.1</span>*np.random.randn(<span style="color: #B452CD">100</span>,<span style="color: #B452CD">1</span>)
</pre></div>
<ol>
<p><li> Write your own code (following the examples under the <a href="https://compphysics.github.io/MachineLearningECT/doc/pub/Day1/html/Day1-bs.html" target="_blank">regression slides</a>) for computing the parametrization of the data set fitting a second-order polynomial.</li>
<p><li> Write your own code (following the examples under the <a href="https://compphysics.github.io/MachineLearning/doc/LectureNotes/_build/html/chapter1.html" target="_blank">regression notes</a>) for computing the parametrization of the data set fitting a second-order polynomial.</li>
<p><li> Use thereafter <b>scikit-learn</b> (see again the examples in the regression slides) and compare with your own code.</li>
<p><li> Using scikit-learn, compute also the mean square error, a risk metric corresponding to the expected value of the squared (quadratic) error defined as</li>
@@ -2362,6 +2364,117 @@ ypredict = X_test @ beta
<p>
<!-- --- end solution of exercise --- -->
<p>
<!-- --- end exercise --- -->
<p>
<!-- --- begin exercise --- -->
<h2 id="exercise-3-normalizing-our-data">Exercise 3: Normalizing our data </h2>
<p>
A much used approach before starting to train the data is to preprocess our
data. Normally the data may need a rescaling and/or may be sensitive
to extreme values. Scaling the data renders our inputs much more
suitable for the algorithms we want to employ.
<p>
<b>Scikit-Learn</b> has several functions which allow us to rescale the
data, normally resulting in much better results in terms of various
accuracy scores. The <b>StandardScaler</b> function in <b>Scikit-Learn</b>
ensures that for each feature/predictor we study the mean value is
zero and the variance is one (every column in the design/feature
matrix). This scaling has the drawback that it does not ensure that
we have a particular maximum or minimum in our data set. Another
function included in <b>Scikit-Learn</b> is the <b>MinMaxScaler</b> which
ensures that all features are exactly between \( 0 \) and \( 1 \). The
<p>
The <b>Normalizer</b> scales each data
point such that the feature vector has a euclidean length of one. In other words, it
projects a data point on the circle (or sphere in the case of higher dimensions) with a
radius of 1. This means every data point is scaled by a different number (by the
inverse of it&#8217;s length).
This normalization is often used when only the direction (or angle) of the data matters,
not the length of the feature vector.
<p>
The <b>RobustScaler</b> works similarly to the StandardScaler in that it
ensures statistical properties for each feature that guarantee that
they are on the same scale. However, the RobustScaler uses the median
and quartiles, instead of mean and variance. This makes the
RobustScaler ignore data points that are very different from the rest
(like measurement errors). These odd data points are also called
outliers, and might often lead to trouble for other scaling
techniques.
<p>
It also common to split the data in a <b>training</b> set and a <b>testing</b> set. A typical split is to use \( 80\% \) of the data for training and the rest
for testing. This can be done as follows with our design matrix \( \boldsymbol{X} \) and data \( \boldsymbol{y} \) (remember to import <b>scikit-learn</b>)
<p>
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
<div class="highlight" style="background: #eeeedd"><pre style="font-size: 80%; line-height: 125%;"><span></span><span style="color: #228B22"># split in training and test data</span>
X_train, X_test, y_train, y_test = train_test_split(X,y,test_size=<span style="color: #B452CD">0.2</span>)
</pre></div>
<p>
Then we can use the standard scaler to scale our data as
<p>
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
<div class="highlight" style="background: #eeeedd"><pre style="font-size: 80%; line-height: 125%;"><span></span>scaler = StandardScaler()
scaler.fit(X_train)
X_train_scaled = scaler.transform(X_train)
X_test_scaled = scaler.transform(X_test)
</pre></div>
<p>
In this exercise we want you to to compute the MSE for the training
data and the test data as function of the complexity of a polynomial,
that is the degree of a given polynomial. We want you also to compute the \( R2 \) score as function of the complexity of the model for both training data and test data. You should also run the calculation with and without scaling.
<p>
One of
the aims is to reproduce Figure 2.11 of <a href="https://github.com/CompPhysics/MLErasmus/blob/master/doc/Textbooks/elementsstat.pdf" target="_blank">Hastie et al</a>.
<p>
Our data is defined by \( x\in [-3,3] \) with a total of for example \( 100 \) data points.
<p>
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
<div class="highlight" style="background: #eeeedd"><pre style="font-size: 80%; line-height: 125%;"><span></span>np.random.seed()
n = <span style="color: #B452CD">100</span>
maxdegree = <span style="color: #B452CD">14</span>
<span style="color: #228B22"># Make data set.</span>
x = np.linspace(-<span style="color: #B452CD">3</span>, <span style="color: #B452CD">3</span>, n).reshape(-<span style="color: #B452CD">1</span>, <span style="color: #B452CD">1</span>)
y = np.exp(-x**<span style="color: #B452CD">2</span>) + <span style="color: #B452CD">1.5</span> * np.exp(-(x-<span style="color: #B452CD">2</span>)**<span style="color: #B452CD">2</span>)+ np.random.normal(<span style="color: #B452CD">0</span>, <span style="color: #B452CD">0.1</span>, x.shape)
</pre></div>
<p>
where \( y \) is the function we want to fit with a given polynomial.
<p>
<b>a)</b>
Write a first code which sets up a design matrix \( X \) defined by a fifth-order polynomial. Scale your data and split it in training and test data.
<p>
<b>b)</b>
Perform an ordinary least squares and compute the means squared error and the \( R2 \) factor for the training data and the test data, with and without scaling.
<p>
<!-- --- begin solution of exercise --- -->
<b>Solution.</b>
This requires a simple extension to the above code where you simply add a statement calling the \( R2 \) function included in the same code.
<!-- --- end solution of exercise --- -->
<p>
<b>c)</b>
Add now a model which allows you to make polynomials up to degree \( 15 \). Perform a standard OLS fitting of the training data and compute the MSE and \( R2 \) for the training and test data and plot both test and training data MSE and \( R2 \) as functions of the polynomial degree. Compare what you see with Figure 2.11 of Hastie et al. Comment your results. For which polynomial degree do you find an optimal MSE (smallest value)?
<p>
<!-- --- begin solution of exercise --- -->
<b>Solution.</b>
Here you simply need to change the degree of the polynomial in the above code to \( n=15 \).
<!-- --- end solution of exercise --- -->
<p>
<!-- --- end exercise --- -->
</section>
+122 -3
View File
@@ -164,6 +164,7 @@ div { text-align: justify; text-justify: inter-word; }
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -171,7 +172,11 @@ div { text-align: justify; text-justify: inter-word; }
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -2156,6 +2161,9 @@ Now it is time to dive more into the details of various methods. We will start w
<p>
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
<h2 id="exercises-for-week-36">Exercises for week 36 </h2>
Here are three possible exercises for week 36 and the lab sessions of Wednesday September 1..
<p>
<!-- --- begin exercise --- -->
@@ -2236,7 +2244,7 @@ analysis environment, available for free and under a commercial
license.
<p>
We recommend using <b>Anaconda</b>.
We recommend using <b>Anaconda</b> if you are not too familiar with setting paths in a terminal environment.
<p>
<!-- --- end exercise --- -->
@@ -2256,7 +2264,7 @@ The following simple Python instructions define our \( x \) and \( y \) values (
y = <span style="color: #B452CD">2.0</span>+<span style="color: #B452CD">5</span>*x*x+<span style="color: #B452CD">0.1</span>*np.random.randn(<span style="color: #B452CD">100</span>,<span style="color: #B452CD">1</span>)
</pre></div>
<ol>
<li> Write your own code (following the examples under the <a href="https://compphysics.github.io/MachineLearningECT/doc/pub/Day1/html/Day1-bs.html" target="_blank">regression slides</a>) for computing the parametrization of the data set fitting a second-order polynomial.</li>
<li> Write your own code (following the examples under the <a href="https://compphysics.github.io/MachineLearning/doc/LectureNotes/_build/html/chapter1.html" target="_blank">regression notes</a>) for computing the parametrization of the data set fitting a second-order polynomial.</li>
<li> Use thereafter <b>scikit-learn</b> (see again the examples in the regression slides) and compare with your own code.</li>
<li> Using scikit-learn, compute also the mean square error, a risk metric corresponding to the expected value of the squared (quadratic) error defined as</li>
</ol>
@@ -2333,6 +2341,117 @@ ypredict = X_test @ beta
<p>
<!-- --- end exercise --- -->
<p>
<!-- --- begin exercise --- -->
<h2 id="exercise-3-normalizing-our-data">Exercise 3: Normalizing our data </h2>
<p>
A much used approach before starting to train the data is to preprocess our
data. Normally the data may need a rescaling and/or may be sensitive
to extreme values. Scaling the data renders our inputs much more
suitable for the algorithms we want to employ.
<p>
<b>Scikit-Learn</b> has several functions which allow us to rescale the
data, normally resulting in much better results in terms of various
accuracy scores. The <b>StandardScaler</b> function in <b>Scikit-Learn</b>
ensures that for each feature/predictor we study the mean value is
zero and the variance is one (every column in the design/feature
matrix). This scaling has the drawback that it does not ensure that
we have a particular maximum or minimum in our data set. Another
function included in <b>Scikit-Learn</b> is the <b>MinMaxScaler</b> which
ensures that all features are exactly between \( 0 \) and \( 1 \). The
<p>
The <b>Normalizer</b> scales each data
point such that the feature vector has a euclidean length of one. In other words, it
projects a data point on the circle (or sphere in the case of higher dimensions) with a
radius of 1. This means every data point is scaled by a different number (by the
inverse of it&#8217;s length).
This normalization is often used when only the direction (or angle) of the data matters,
not the length of the feature vector.
<p>
The <b>RobustScaler</b> works similarly to the StandardScaler in that it
ensures statistical properties for each feature that guarantee that
they are on the same scale. However, the RobustScaler uses the median
and quartiles, instead of mean and variance. This makes the
RobustScaler ignore data points that are very different from the rest
(like measurement errors). These odd data points are also called
outliers, and might often lead to trouble for other scaling
techniques.
<p>
It also common to split the data in a <b>training</b> set and a <b>testing</b> set. A typical split is to use \( 80\% \) of the data for training and the rest
for testing. This can be done as follows with our design matrix \( \boldsymbol{X} \) and data \( \boldsymbol{y} \) (remember to import <b>scikit-learn</b>)
<p>
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
<div class="highlight" style="background: #eeeedd"><pre style="line-height: 125%;"><span></span><span style="color: #228B22"># split in training and test data</span>
X_train, X_test, y_train, y_test = train_test_split(X,y,test_size=<span style="color: #B452CD">0.2</span>)
</pre></div>
<p>
Then we can use the standard scaler to scale our data as
<p>
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
<div class="highlight" style="background: #eeeedd"><pre style="line-height: 125%;"><span></span>scaler = StandardScaler()
scaler.fit(X_train)
X_train_scaled = scaler.transform(X_train)
X_test_scaled = scaler.transform(X_test)
</pre></div>
<p>
In this exercise we want you to to compute the MSE for the training
data and the test data as function of the complexity of a polynomial,
that is the degree of a given polynomial. We want you also to compute the \( R2 \) score as function of the complexity of the model for both training data and test data. You should also run the calculation with and without scaling.
<p>
One of
the aims is to reproduce Figure 2.11 of <a href="https://github.com/CompPhysics/MLErasmus/blob/master/doc/Textbooks/elementsstat.pdf" target="_blank">Hastie et al</a>.
<p>
Our data is defined by \( x\in [-3,3] \) with a total of for example \( 100 \) data points.
<p>
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
<div class="highlight" style="background: #eeeedd"><pre style="line-height: 125%;"><span></span>np.random.seed()
n = <span style="color: #B452CD">100</span>
maxdegree = <span style="color: #B452CD">14</span>
<span style="color: #228B22"># Make data set.</span>
x = np.linspace(-<span style="color: #B452CD">3</span>, <span style="color: #B452CD">3</span>, n).reshape(-<span style="color: #B452CD">1</span>, <span style="color: #B452CD">1</span>)
y = np.exp(-x**<span style="color: #B452CD">2</span>) + <span style="color: #B452CD">1.5</span> * np.exp(-(x-<span style="color: #B452CD">2</span>)**<span style="color: #B452CD">2</span>)+ np.random.normal(<span style="color: #B452CD">0</span>, <span style="color: #B452CD">0.1</span>, x.shape)
</pre></div>
<p>
where \( y \) is the function we want to fit with a given polynomial.
<p>
<b>a)</b>
Write a first code which sets up a design matrix \( X \) defined by a fifth-order polynomial. Scale your data and split it in training and test data.
<p>
<b>b)</b>
Perform an ordinary least squares and compute the means squared error and the \( R2 \) factor for the training data and the test data, with and without scaling.
<p>
<!-- --- begin solution of exercise --- -->
<b>Solution.</b>
This requires a simple extension to the above code where you simply add a statement calling the \( R2 \) function included in the same code.
<!-- --- end solution of exercise --- -->
<p>
<b>c)</b>
Add now a model which allows you to make polynomials up to degree \( 15 \). Perform a standard OLS fitting of the training data and compute the MSE and \( R2 \) for the training and test data and plot both test and training data MSE and \( R2 \) as functions of the polynomial degree. Compare what you see with Figure 2.11 of Hastie et al. Comment your results. For which polynomial degree do you find an optimal MSE (smallest value)?
<p>
<!-- --- begin solution of exercise --- -->
<b>Solution.</b>
Here you simply need to change the degree of the polynomial in the above code to \( n=15 \).
<!-- --- end solution of exercise --- -->
<p>
<!-- --- end exercise --- -->
<!-- ------------------- end of main content --------------- -->
+122 -3
View File
@@ -169,6 +169,7 @@ div { text-align: justify; text-justify: inter-word; }
None,
'and-what-about-using-neural-networks'),
('A first summary', 2, None, 'a-first-summary'),
('Exercises for week 36', 2, None, 'exercises-for-week-36'),
('Exercise 1: Setting up various Python environments',
2,
None,
@@ -176,7 +177,11 @@ div { text-align: justify; text-justify: inter-word; }
('Exercise 2: making your own data and exploring scikit-learn',
2,
None,
'exercise-2-making-your-own-data-and-exploring-scikit-learn')]}
'exercise-2-making-your-own-data-and-exploring-scikit-learn'),
('Exercise 3: Normalizing our data',
2,
None,
'exercise-3-normalizing-our-data')]}
end of tocinfo -->
<body>
@@ -2161,6 +2166,9 @@ Now it is time to dive more into the details of various methods. We will start w
<p>
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
<h2 id="exercises-for-week-36">Exercises for week 36 </h2>
Here are three possible exercises for week 36 and the lab sessions of Wednesday September 1..
<p>
<!-- --- begin exercise --- -->
@@ -2241,7 +2249,7 @@ analysis environment, available for free and under a commercial
license.
<p>
We recommend using <b>Anaconda</b>.
We recommend using <b>Anaconda</b> if you are not too familiar with setting paths in a terminal environment.
<p>
<!-- --- end exercise --- -->
@@ -2261,7 +2269,7 @@ The following simple Python instructions define our \( x \) and \( y \) values (
y <span style="color: #666666">=</span> <span style="color: #666666">2.0+5*</span>x<span style="color: #666666">*</span>x<span style="color: #666666">+0.1*</span>np<span style="color: #666666">.</span>random<span style="color: #666666">.</span>randn(<span style="color: #666666">100</span>,<span style="color: #666666">1</span>)
</pre></div>
<ol>
<li> Write your own code (following the examples under the <a href="https://compphysics.github.io/MachineLearningECT/doc/pub/Day1/html/Day1-bs.html" target="_blank">regression slides</a>) for computing the parametrization of the data set fitting a second-order polynomial.</li>
<li> Write your own code (following the examples under the <a href="https://compphysics.github.io/MachineLearning/doc/LectureNotes/_build/html/chapter1.html" target="_blank">regression notes</a>) for computing the parametrization of the data set fitting a second-order polynomial.</li>
<li> Use thereafter <b>scikit-learn</b> (see again the examples in the regression slides) and compare with your own code.</li>
<li> Using scikit-learn, compute also the mean square error, a risk metric corresponding to the expected value of the squared (quadratic) error defined as</li>
</ol>
@@ -2338,6 +2346,117 @@ ypredict <span style="color: #666666">=</span> X_test <span style="color: #66666
<p>
<!-- --- end exercise --- -->
<p>
<!-- --- begin exercise --- -->
<h2 id="exercise-3-normalizing-our-data">Exercise 3: Normalizing our data </h2>
<p>
A much used approach before starting to train the data is to preprocess our
data. Normally the data may need a rescaling and/or may be sensitive
to extreme values. Scaling the data renders our inputs much more
suitable for the algorithms we want to employ.
<p>
<b>Scikit-Learn</b> has several functions which allow us to rescale the
data, normally resulting in much better results in terms of various
accuracy scores. The <b>StandardScaler</b> function in <b>Scikit-Learn</b>
ensures that for each feature/predictor we study the mean value is
zero and the variance is one (every column in the design/feature
matrix). This scaling has the drawback that it does not ensure that
we have a particular maximum or minimum in our data set. Another
function included in <b>Scikit-Learn</b> is the <b>MinMaxScaler</b> which
ensures that all features are exactly between \( 0 \) and \( 1 \). The
<p>
The <b>Normalizer</b> scales each data
point such that the feature vector has a euclidean length of one. In other words, it
projects a data point on the circle (or sphere in the case of higher dimensions) with a
radius of 1. This means every data point is scaled by a different number (by the
inverse of it&#8217;s length).
This normalization is often used when only the direction (or angle) of the data matters,
not the length of the feature vector.
<p>
The <b>RobustScaler</b> works similarly to the StandardScaler in that it
ensures statistical properties for each feature that guarantee that
they are on the same scale. However, the RobustScaler uses the median
and quartiles, instead of mean and variance. This makes the
RobustScaler ignore data points that are very different from the rest
(like measurement errors). These odd data points are also called
outliers, and might often lead to trouble for other scaling
techniques.
<p>
It also common to split the data in a <b>training</b> set and a <b>testing</b> set. A typical split is to use \( 80\% \) of the data for training and the rest
for testing. This can be done as follows with our design matrix \( \boldsymbol{X} \) and data \( \boldsymbol{y} \) (remember to import <b>scikit-learn</b>)
<p>
<!-- code=python (!bc pycod) typeset with pygments style "default" -->
<div class="highlight" style="background: #f8f8f8"><pre style="line-height: 125%;"><span></span><span style="color: #408080; font-style: italic"># split in training and test data</span>
X_train, X_test, y_train, y_test <span style="color: #666666">=</span> train_test_split(X,y,test_size<span style="color: #666666">=0.2</span>)
</pre></div>
<p>
Then we can use the standard scaler to scale our data as
<p>
<!-- code=python (!bc pycod) typeset with pygments style "default" -->
<div class="highlight" style="background: #f8f8f8"><pre style="line-height: 125%;"><span></span>scaler <span style="color: #666666">=</span> StandardScaler()
scaler<span style="color: #666666">.</span>fit(X_train)
X_train_scaled <span style="color: #666666">=</span> scaler<span style="color: #666666">.</span>transform(X_train)
X_test_scaled <span style="color: #666666">=</span> scaler<span style="color: #666666">.</span>transform(X_test)
</pre></div>
<p>
In this exercise we want you to to compute the MSE for the training
data and the test data as function of the complexity of a polynomial,
that is the degree of a given polynomial. We want you also to compute the \( R2 \) score as function of the complexity of the model for both training data and test data. You should also run the calculation with and without scaling.
<p>
One of
the aims is to reproduce Figure 2.11 of <a href="https://github.com/CompPhysics/MLErasmus/blob/master/doc/Textbooks/elementsstat.pdf" target="_blank">Hastie et al</a>.
<p>
Our data is defined by \( x\in [-3,3] \) with a total of for example \( 100 \) data points.
<p>
<!-- code=python (!bc pycod) typeset with pygments style "default" -->
<div class="highlight" style="background: #f8f8f8"><pre style="line-height: 125%;"><span></span>np<span style="color: #666666">.</span>random<span style="color: #666666">.</span>seed()
n <span style="color: #666666">=</span> <span style="color: #666666">100</span>
maxdegree <span style="color: #666666">=</span> <span style="color: #666666">14</span>
<span style="color: #408080; font-style: italic"># Make data set.</span>
x <span style="color: #666666">=</span> np<span style="color: #666666">.</span>linspace(<span style="color: #666666">-3</span>, <span style="color: #666666">3</span>, n)<span style="color: #666666">.</span>reshape(<span style="color: #666666">-1</span>, <span style="color: #666666">1</span>)
y <span style="color: #666666">=</span> np<span style="color: #666666">.</span>exp(<span style="color: #666666">-</span>x<span style="color: #666666">**2</span>) <span style="color: #666666">+</span> <span style="color: #666666">1.5</span> <span style="color: #666666">*</span> np<span style="color: #666666">.</span>exp(<span style="color: #666666">-</span>(x<span style="color: #666666">-2</span>)<span style="color: #666666">**2</span>)<span style="color: #666666">+</span> np<span style="color: #666666">.</span>random<span style="color: #666666">.</span>normal(<span style="color: #666666">0</span>, <span style="color: #666666">0.1</span>, x<span style="color: #666666">.</span>shape)
</pre></div>
<p>
where \( y \) is the function we want to fit with a given polynomial.
<p>
<b>a)</b>
Write a first code which sets up a design matrix \( X \) defined by a fifth-order polynomial. Scale your data and split it in training and test data.
<p>
<b>b)</b>
Perform an ordinary least squares and compute the means squared error and the \( R2 \) factor for the training data and the test data, with and without scaling.
<p>
<!-- --- begin solution of exercise --- -->
<b>Solution.</b>
This requires a simple extension to the above code where you simply add a statement calling the \( R2 \) function included in the same code.
<!-- --- end solution of exercise --- -->
<p>
<b>c)</b>
Add now a model which allows you to make polynomials up to degree \( 15 \). Perform a standard OLS fitting of the training data and compute the MSE and \( R2 \) for the training and test data and plot both test and training data MSE and \( R2 \) as functions of the polynomial degree. Compare what you see with Figure 2.11 of Hastie et al. Comment your results. For which polynomial degree do you find an optimal MSE (smallest value)?
<p>
<!-- --- begin solution of exercise --- -->
<b>Solution.</b>
Here you simply need to change the degree of the polynomial in the above code to \( n=15 \).
<!-- --- end solution of exercise --- -->
<p>
<!-- --- end exercise --- -->
<!-- ------------------- end of main content --------------- -->
Binary file not shown.
+149 -2
View File
@@ -2471,6 +2471,10 @@
"Now it is time to dive more into the details of various methods. We will start with linear regression and try to take a deeper look at what it entails.\n",
"\n",
"\n",
"## Exercises for week 36\n",
"Here are three possible exercises for week 36 and the lab sessions of Wednesday September 1..\n",
"\n",
"\n",
"\n",
"\n",
"<!-- --- begin exercise --- -->\n",
@@ -2534,7 +2538,7 @@
"analysis environment, available for free and under a commercial\n",
"license.\n",
"\n",
"We recommend using **Anaconda**.\n",
"We recommend using **Anaconda** if you are not too familiar with setting paths in a terminal environment.\n",
"\n",
"<!-- --- end exercise --- -->\n",
"\n",
@@ -2566,7 +2570,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"1. Write your own code (following the examples under the [regression slides](https://compphysics.github.io/MachineLearningECT/doc/pub/Day1/html/Day1-bs.html)) for computing the parametrization of the data set fitting a second-order polynomial. \n",
"1. Write your own code (following the examples under the [regression notes](https://compphysics.github.io/MachineLearning/doc/LectureNotes/_build/html/chapter1.html)) for computing the parametrization of the data set fitting a second-order polynomial. \n",
"\n",
"2. Use thereafter **scikit-learn** (see again the examples in the regression slides) and compare with your own code. \n",
"\n",
@@ -2684,6 +2688,149 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<!-- --- end solution of exercise --- -->\n",
"\n",
"<!-- --- end exercise --- -->\n",
"\n",
"\n",
"\n",
"\n",
"<!-- --- begin exercise --- -->\n",
"\n",
"## Exercise 3: Normalizing our data\n",
"\n",
"A much used approach before starting to train the data is to preprocess our\n",
"data. Normally the data may need a rescaling and/or may be sensitive\n",
"to extreme values. Scaling the data renders our inputs much more\n",
"suitable for the algorithms we want to employ.\n",
"\n",
"**Scikit-Learn** has several functions which allow us to rescale the\n",
"data, normally resulting in much better results in terms of various\n",
"accuracy scores. The **StandardScaler** function in **Scikit-Learn**\n",
"ensures that for each feature/predictor we study the mean value is\n",
"zero and the variance is one (every column in the design/feature\n",
"matrix). This scaling has the drawback that it does not ensure that\n",
"we have a particular maximum or minimum in our data set. Another\n",
"function included in **Scikit-Learn** is the **MinMaxScaler** which\n",
"ensures that all features are exactly between $0$ and $1$. The\n",
"\n",
"\n",
"The **Normalizer** scales each data\n",
"point such that the feature vector has a euclidean length of one. In other words, it\n",
"projects a data point on the circle (or sphere in the case of higher dimensions) with a\n",
"radius of 1. This means every data point is scaled by a different number (by the\n",
"inverse of its length).\n",
"This normalization is often used when only the direction (or angle) of the data matters,\n",
"not the length of the feature vector.\n",
"\n",
"The **RobustScaler** works similarly to the StandardScaler in that it\n",
"ensures statistical properties for each feature that guarantee that\n",
"they are on the same scale. However, the RobustScaler uses the median\n",
"and quartiles, instead of mean and variance. This makes the\n",
"RobustScaler ignore data points that are very different from the rest\n",
"(like measurement errors). These odd data points are also called\n",
"outliers, and might often lead to trouble for other scaling\n",
"techniques.\n",
"\n",
"\n",
"It also common to split the data in a **training** set and a **testing** set. A typical split is to use $80\\%$ of the data for training and the rest\n",
"for testing. This can be done as follows with our design matrix $\\boldsymbol{X}$ and data $\\boldsymbol{y}$ (remember to import **scikit-learn**)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"# split in training and test data\n",
"X_train, X_test, y_train, y_test = train_test_split(X,y,test_size=0.2)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Then we can use the standard scaler to scale our data as"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"scaler = StandardScaler()\n",
"scaler.fit(X_train)\n",
"X_train_scaled = scaler.transform(X_train)\n",
"X_test_scaled = scaler.transform(X_test)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"In this exercise we want you to to compute the MSE for the training\n",
"data and the test data as function of the complexity of a polynomial,\n",
"that is the degree of a given polynomial. We want you also to compute the $R2$ score as function of the complexity of the model for both training data and test data. You should also run the calculation with and without scaling. \n",
"\n",
"One of \n",
"the aims is to reproduce Figure 2.11 of [Hastie et al](https://github.com/CompPhysics/MLErasmus/blob/master/doc/Textbooks/elementsstat.pdf).\n",
"\n",
"\n",
"\n",
"Our data is defined by $x\\in [-3,3]$ with a total of for example $100$ data points."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"np.random.seed()\n",
"n = 100\n",
"maxdegree = 14\n",
"# Make data set.\n",
"x = np.linspace(-3, 3, n).reshape(-1, 1)\n",
"y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2)+ np.random.normal(0, 0.1, x.shape)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"where $y$ is the function we want to fit with a given polynomial.\n",
"\n",
"\n",
"**a)**\n",
"Write a first code which sets up a design matrix $X$ defined by a fifth-order polynomial. Scale your data and split it in training and test data.\n",
"\n",
"**b)**\n",
"Perform an ordinary least squares and compute the means squared error and the $R2$ factor for the training data and the test data, with and without scaling.\n",
"\n",
"\n",
"<!-- --- begin solution of exercise --- -->\n",
"**Solution.**\n",
"This requires a simple extension to the above code where you simply add a statement calling the $R2$ function included in the same code.\n",
"<!-- --- end solution of exercise --- -->\n",
"\n",
"**c)**\n",
"Add now a model which allows you to make polynomials up to degree $15$. Perform a standard OLS fitting of the training data and compute the MSE and $R2$ for the training and test data and plot both test and training data MSE and $R2$ as functions of the polynomial degree. Compare what you see with Figure 2.11 of Hastie et al. Comment your results. For which polynomial degree do you find an optimal MSE (smallest value)?\n",
"\n",
"\n",
"<!-- --- begin solution of exercise --- -->\n",
"**Solution.**\n",
"Here you simply need to change the degree of the polynomial in the above code to $n=15$.\n",
"<!-- --- end solution of exercise --- -->\n",
"\n",
"<!-- --- end exercise --- -->"
+98 -2
View File
@@ -1690,6 +1690,10 @@ Now it is time to dive more into the details of various methods. We will start w
!split
===== Exercises for week 36 =====
Here are three possible exercises for week 36 and the lab sessions of Wednesday September 1..
===== Exercise: Setting up various Python environments =====
The first exercise here is of a mere technical art. We want you to have
@@ -1748,7 +1752,9 @@ distribution for scientific and analytic computing distribution and
analysis environment, available for free and under a commercial
license.
We recommend using _Anaconda_.
We recommend using _Anaconda_ if you are not too familiar with setting paths in a terminal environment.
===== Exercise: making your own data and exploring scikit-learn =====
@@ -1761,7 +1767,7 @@ x = np.random.rand(100,1)
y = 2.0+5*x*x+0.1*np.random.randn(100,1)
!ec
o Write your own code (following the examples under the "regression slides":"https://compphysics.github.io/MachineLearningECT/doc/pub/Day1/html/Day1-bs.html") for computing the parametrization of the data set fitting a second-order polynomial.
o Write your own code (following the examples under the "regression notes":"https://compphysics.github.io/MachineLearning/doc/LectureNotes/_build/html/chapter1.html") for computing the parametrization of the data set fitting a second-order polynomial.
o Use thereafter _scikit-learn_ (see again the examples in the regression slides) and compare with your own code.
o Using scikit-learn, compute also the mean square error, a risk metric corresponding to the expected value of the squared (quadratic) error defined as
!bt
@@ -1832,3 +1838,93 @@ print(MSE(y_test,ypredict))
!esol
===== Exercise: Normalizing our data =====
A much used approach before starting to train the data is to preprocess our
data. Normally the data may need a rescaling and/or may be sensitive
to extreme values. Scaling the data renders our inputs much more
suitable for the algorithms we want to employ.
_Scikit-Learn_ has several functions which allow us to rescale the
data, normally resulting in much better results in terms of various
accuracy scores. The _StandardScaler_ function in _Scikit-Learn_
ensures that for each feature/predictor we study the mean value is
zero and the variance is one (every column in the design/feature
matrix). This scaling has the drawback that it does not ensure that
we have a particular maximum or minimum in our data set. Another
function included in _Scikit-Learn_ is the _MinMaxScaler_ which
ensures that all features are exactly between $0$ and $1$. The
The _Normalizer_ scales each data
point such that the feature vector has a euclidean length of one. In other words, it
projects a data point on the circle (or sphere in the case of higher dimensions) with a
radius of 1. This means every data point is scaled by a different number (by the
inverse of its length).
This normalization is often used when only the direction (or angle) of the data matters,
not the length of the feature vector.
The _RobustScaler_ works similarly to the StandardScaler in that it
ensures statistical properties for each feature that guarantee that
they are on the same scale. However, the RobustScaler uses the median
and quartiles, instead of mean and variance. This makes the
RobustScaler ignore data points that are very different from the rest
(like measurement errors). These odd data points are also called
outliers, and might often lead to trouble for other scaling
techniques.
It also common to split the data in a _training_ set and a _testing_ set. A typical split is to use $80\%$ of the data for training and the rest
for testing. This can be done as follows with our design matrix $\bm{X}$ and data $\bm{y}$ (remember to import _scikit-learn_)
!bc pycod
# split in training and test data
X_train, X_test, y_train, y_test = train_test_split(X,y,test_size=0.2)
!ec
Then we can use the standard scaler to scale our data as
!bc pycod
scaler = StandardScaler()
scaler.fit(X_train)
X_train_scaled = scaler.transform(X_train)
X_test_scaled = scaler.transform(X_test)
!ec
In this exercise we want you to to compute the MSE for the training
data and the test data as function of the complexity of a polynomial,
that is the degree of a given polynomial. We want you also to compute the $R2$ score as function of the complexity of the model for both training data and test data. You should also run the calculation with and without scaling.
One of
the aims is to reproduce Figure 2.11 of "Hastie et al":"https://github.com/CompPhysics/MLErasmus/blob/master/doc/Textbooks/elementsstat.pdf".
Our data is defined by $x\in [-3,3]$ with a total of for example $100$ data points.
!bc pycod
np.random.seed()
n = 100
maxdegree = 14
# Make data set.
x = np.linspace(-3, 3, n).reshape(-1, 1)
y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2)+ np.random.normal(0, 0.1, x.shape)
!ec
where $y$ is the function we want to fit with a given polynomial.
!bsubex
Write a first code which sets up a design matrix $X$ defined by a fifth-order polynomial. Scale your data and split it in training and test data.
!esubex
!bsubex
Perform an ordinary least squares and compute the means squared error and the $R2$ factor for the training data and the test data, with and without scaling.
!bsol
This requires a simple extension to the above code where you simply add a statement calling the $R2$ function included in the same code.
!esol
!esubex
!bsubex
Add now a model which allows you to make polynomials up to degree $15$. Perform a standard OLS fitting of the training data and compute the MSE and $R2$ for the training and test data and plot both test and training data MSE and $R2$ as functions of the polynomial degree. Compare what you see with Figure 2.11 of Hastie et al. Comment your results. For which polynomial degree do you find an optimal MSE (smallest value)?
!bsol
Here you simply need to change the degree of the polynomial in the above code to $n=15$.
!esol
!esubex