update book

This commit is contained in:
Morten Hjorth-Jensen
2024-09-01 13:19:34 +02:00
parent 3fabb48112
commit b04bd79bc1
26 changed files with 11260 additions and 6648 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

@@ -2,32 +2,32 @@
"cells": [
{
"cell_type": "markdown",
"id": "fb4d27e1",
"id": "0d8dd9a1",
"metadata": {
"editable": true
},
"source": [
"<!-- HTML file automatically generated from DocOnce source (https://github.com/doconce/doconce/)\n",
"doconce format html exercisesweek36.do.txt --no_mako -->\n",
"doconce format html exercisesweek36.do.txt -->\n",
"<!-- dom:TITLE: Exercises week 36 -->"
]
},
{
"cell_type": "markdown",
"id": "c3ef468d",
"id": "11ad120e",
"metadata": {
"editable": true
},
"source": [
"# Exercises week 36\n",
"**September 4-8, 2023**\n",
"**September 2-6, 2024**\n",
"\n",
"Date: **Deadline is Sunday September 10 at midnight**"
"Date: **Deadline is Friday September 6 at midnight**"
]
},
{
"cell_type": "markdown",
"id": "b81273ff",
"id": "1b63c849",
"metadata": {
"editable": true
},
@@ -44,7 +44,7 @@
},
{
"cell_type": "markdown",
"id": "53c4e245",
"id": "e4b83732",
"metadata": {
"editable": true
},
@@ -62,7 +62,7 @@
},
{
"cell_type": "markdown",
"id": "e5813e09",
"id": "c3c7500f",
"metadata": {
"editable": true
},
@@ -74,7 +74,7 @@
},
{
"cell_type": "markdown",
"id": "f8af4862",
"id": "321cd815",
"metadata": {
"editable": true
},
@@ -84,7 +84,7 @@
},
{
"cell_type": "markdown",
"id": "8a114760",
"id": "6f0ca592",
"metadata": {
"editable": true
},
@@ -97,7 +97,7 @@
},
{
"cell_type": "markdown",
"id": "c4610a33",
"id": "e0e80d60",
"metadata": {
"editable": true
},
@@ -107,7 +107,7 @@
},
{
"cell_type": "markdown",
"id": "a3608d5c",
"id": "01b82b98",
"metadata": {
"editable": true
},
@@ -119,7 +119,7 @@
},
{
"cell_type": "markdown",
"id": "5dcf5daa",
"id": "fe87982f",
"metadata": {
"editable": true
},
@@ -134,7 +134,7 @@
},
{
"cell_type": "markdown",
"id": "0cbd93fd",
"id": "f340d633",
"metadata": {
"editable": true
},
@@ -147,7 +147,7 @@
},
{
"cell_type": "markdown",
"id": "6fba5d18",
"id": "5c87f4a6",
"metadata": {
"editable": true
},
@@ -159,7 +159,7 @@
},
{
"cell_type": "markdown",
"id": "bec3e21d",
"id": "01b7082d",
"metadata": {
"editable": true
},
@@ -171,7 +171,7 @@
},
{
"cell_type": "markdown",
"id": "380e526b",
"id": "ba8f3cdb",
"metadata": {
"editable": true
},
@@ -183,7 +183,7 @@
},
{
"cell_type": "markdown",
"id": "97a04d2d",
"id": "118cc5e4",
"metadata": {
"editable": true
},
@@ -193,7 +193,7 @@
},
{
"cell_type": "markdown",
"id": "a378590f",
"id": "8e829cb2",
"metadata": {
"editable": true
},
@@ -205,7 +205,7 @@
},
{
"cell_type": "markdown",
"id": "f2d2d7ae",
"id": "91ce6d32",
"metadata": {
"editable": true
},
@@ -217,7 +217,7 @@
},
{
"cell_type": "markdown",
"id": "b2ffd80f",
"id": "1f24acd9",
"metadata": {
"editable": true
},
@@ -229,7 +229,7 @@
},
{
"cell_type": "markdown",
"id": "3c3a9191",
"id": "4f898e5c",
"metadata": {
"editable": true
},
@@ -241,7 +241,7 @@
},
{
"cell_type": "markdown",
"id": "4e3f0bb8",
"id": "dbd99565",
"metadata": {
"editable": true
},
@@ -253,7 +253,7 @@
},
{
"cell_type": "markdown",
"id": "040a6f88",
"id": "0f0cb9de",
"metadata": {
"editable": true
},
@@ -269,7 +269,7 @@
},
{
"cell_type": "markdown",
"id": "0107597b",
"id": "b74418c2",
"metadata": {
"editable": true
},
@@ -281,7 +281,7 @@
},
{
"cell_type": "markdown",
"id": "55fd1a9a",
"id": "3b0279b2",
"metadata": {
"editable": true
},
@@ -291,7 +291,7 @@
},
{
"cell_type": "markdown",
"id": "8a05634c",
"id": "f3fc4320",
"metadata": {
"editable": true
},
@@ -303,7 +303,7 @@
},
{
"cell_type": "markdown",
"id": "5d46ab65",
"id": "c98f5acf",
"metadata": {
"editable": true
},
@@ -315,7 +315,7 @@
},
{
"cell_type": "markdown",
"id": "478a39d8",
"id": "81e8044a",
"metadata": {
"editable": true
},
@@ -339,7 +339,7 @@
},
{
"cell_type": "markdown",
"id": "ed28dbd2",
"id": "c96c8fc3",
"metadata": {
"editable": true
},
@@ -351,7 +351,7 @@
},
{
"cell_type": "markdown",
"id": "1939c401",
"id": "90046598",
"metadata": {
"editable": true
},
@@ -361,7 +361,7 @@
},
{
"cell_type": "markdown",
"id": "10877c2d",
"id": "5ca23883",
"metadata": {
"editable": true
},
@@ -373,7 +373,7 @@
},
{
"cell_type": "markdown",
"id": "a7adfe54",
"id": "b4c131be",
"metadata": {
"editable": true
},
File diff suppressed because it is too large Load Diff
@@ -55,7 +55,7 @@ const thebe_selector_output = ".output, .cell_output"
<script defer="defer" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Week 36: Statistical interpretation of Linear Regression and Resampling techniques" href="week36.html" />
<link rel="next" title="Week 36: Linear Rgeression and Statistical interpretations" href="week36.html" />
<link rel="prev" title="Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression" href="week35.html" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="docsearch:language" content="None">
@@ -275,114 +275,7 @@ const thebe_selector_output = ".output, .cell_output"
</li>
<li class="toctree-l1">
<a class="reference internal" href="week36.html">
Week 36: Statistical interpretation of Linear Regression and Resampling techniques
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="exercisesweek37.html">
Exercises week 37
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="week37.html">
Week 37: Statistical interpretations and Resampling Methods
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="exercisesweek38.html">
Exercises week 38
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="week38.html">
Week 38: Logistic Regression and Optimization
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="exercisesweek39.html">
Exercises week 39
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="week39.html">
Week 39: Optimization and Gradient Methods
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="week40.html">
Week 40: Gradient descent methods (continued) and start Neural networks
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="exercisesweek41.html">
Exercises week 41
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="week41.html">
Week 41 Neural networks and constructing a neural network code
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="exercisesweek42.html">
Exercises week 42
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="week42.html">
Week 42 Constructing a Neural Network code with introduction to Tensor flow
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="exercisesweek43.html">
Exercises weeks 43 and 44
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="week43.html">
Week 43: Deep Learning: Constructing a Neural Network code and solving differential equations
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="week44.html">
Week 44, Convolutional Neural Networks (CNN)
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="week45.html">
Week 45, Recurrent Neural Networks
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="week46.html">
Week 46: Decision Trees, Ensemble methods and Random Forests
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="week47.html">
Week 47: From Decision Trees to Ensemble Methods, Random Forests and Boosting Methods and Summary of Course
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="exercisesweek47.html">
Exercise week 47
</a>
</li>
</ul>
<p aria-level="2" class="caption" role="heading">
<span class="caption-text">
Projects
</span>
</p>
<ul class="nav bd-sidenav">
<li class="toctree-l1">
<a class="reference internal" href="project1.html">
Project 1 on Machine Learning, deadline October 9 (midnight), 2023
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="project2.html">
Project 2 on Machine Learning, deadline November 17 (Midnight)
Week 36: Linear Rgeression and Statistical interpretations
</a>
</li>
</ul>
@@ -540,11 +433,11 @@ const thebe_selector_output = ".output, .cell_output"
<div>
<!-- HTML file automatically generated from DocOnce source (https://github.com/doconce/doconce/)
doconce format html exercisesweek36.do.txt --no_mako -->
doconce format html exercisesweek36.do.txt -->
<!-- dom:TITLE: Exercises week 36 --><div class="tex2jax_ignore mathjax_ignore section" id="exercises-week-36">
<h1>Exercises week 36<a class="headerlink" href="#exercises-week-36" title="Permalink to this headline"></a></h1>
<p><strong>September 4-8, 2023</strong></p>
<p>Date: <strong>Deadline is Sunday September 10 at midnight</strong></p>
<p><strong>September 2-6, 2024</strong></p>
<p>Date: <strong>Deadline is Friday September 6 at midnight</strong></p>
<div class="section" id="overarching-aims-of-the-exercises-this-week">
<h2>Overarching aims of the exercises this week<a class="headerlink" href="#overarching-aims-of-the-exercises-this-week" title="Permalink to this headline"></a></h2>
<p>This set of exercises form an important part of the first project. The
@@ -702,7 +595,7 @@ Ridge regression and ordinary least squares.</p>
<a class='right-next' id="next-link" href="week36.html" title="next page">
<div class="prev-next-info">
<p class="prev-next-subtitle">next</p>
<p class="prev-next-title">Week 36: Statistical interpretation of Linear Regression and Resampling techniques</p>
<p class="prev-next-title">Week 36: Linear Rgeression and Statistical interpretations</p>
</div>
<i class="fas fa-angle-right"></i>
</a>
@@ -264,6 +264,16 @@ const thebe_selector_output = ".output, .cell_output"
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="exercisesweek36.html">
Exercises week 36
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="week36.html">
Week 36: Linear Rgeression and Statistical interpretations
</a>
</li>
</ul>
</div>
+10
View File
@@ -265,6 +265,16 @@ const thebe_selector_output = ".output, .cell_output"
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="exercisesweek36.html">
Exercises week 36
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="week36.html">
Week 36: Linear Rgeression and Statistical interpretations
</a>
</li>
</ul>
</div>
Binary file not shown.
@@ -7,7 +7,7 @@ Traceback (most recent call last):
return just_run(coro(*args, **kwargs))
File "/Users/mhjensen/miniforge3/envs/myenv/lib/python3.9/site-packages/nbclient/util.py", line 62, in just_run
return loop.run_until_complete(coro)
File "/Users/mhjensen/miniforge3/envs/myenv/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
File "/Users/mhjensen/miniforge3/envs/myenv/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/Users/mhjensen/miniforge3/envs/myenv/lib/python3.9/site-packages/nbclient/client.py", line 663, in async_execute
await self.async_execute_cell(
@@ -24,7 +24,7 @@ Xinv = np.linlag.pinv(X)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Input In [1], in <cell line: 3>()
Cell In[6], line 3
 1 import numpy as np
 2 X = np.array( [ [1,2,3],[2,4,5],[3,5,6]])
----> 3 Xinv = np.linlag.pinv(X)
+10
View File
@@ -270,6 +270,16 @@ const thebe_selector_output = ".output, .cell_output"
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="exercisesweek36.html">
Exercises week 36
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="week36.html">
Week 36: Linear Rgeression and Statistical interpretations
</a>
</li>
</ul>
</div>
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
@@ -2,32 +2,32 @@
"cells": [
{
"cell_type": "markdown",
"id": "fb4d27e1",
"id": "0d8dd9a1",
"metadata": {
"editable": true
},
"source": [
"<!-- HTML file automatically generated from DocOnce source (https://github.com/doconce/doconce/)\n",
"doconce format html exercisesweek36.do.txt --no_mako -->\n",
"doconce format html exercisesweek36.do.txt -->\n",
"<!-- dom:TITLE: Exercises week 36 -->"
]
},
{
"cell_type": "markdown",
"id": "c3ef468d",
"id": "11ad120e",
"metadata": {
"editable": true
},
"source": [
"# Exercises week 36\n",
"**September 4-8, 2023**\n",
"**September 2-6, 2024**\n",
"\n",
"Date: **Deadline is Sunday September 10 at midnight**"
"Date: **Deadline is Friday September 6 at midnight**"
]
},
{
"cell_type": "markdown",
"id": "b81273ff",
"id": "1b63c849",
"metadata": {
"editable": true
},
@@ -44,7 +44,7 @@
},
{
"cell_type": "markdown",
"id": "53c4e245",
"id": "e4b83732",
"metadata": {
"editable": true
},
@@ -62,7 +62,7 @@
},
{
"cell_type": "markdown",
"id": "e5813e09",
"id": "c3c7500f",
"metadata": {
"editable": true
},
@@ -74,7 +74,7 @@
},
{
"cell_type": "markdown",
"id": "f8af4862",
"id": "321cd815",
"metadata": {
"editable": true
},
@@ -84,7 +84,7 @@
},
{
"cell_type": "markdown",
"id": "8a114760",
"id": "6f0ca592",
"metadata": {
"editable": true
},
@@ -97,7 +97,7 @@
},
{
"cell_type": "markdown",
"id": "c4610a33",
"id": "e0e80d60",
"metadata": {
"editable": true
},
@@ -107,7 +107,7 @@
},
{
"cell_type": "markdown",
"id": "a3608d5c",
"id": "01b82b98",
"metadata": {
"editable": true
},
@@ -119,7 +119,7 @@
},
{
"cell_type": "markdown",
"id": "5dcf5daa",
"id": "fe87982f",
"metadata": {
"editable": true
},
@@ -134,7 +134,7 @@
},
{
"cell_type": "markdown",
"id": "0cbd93fd",
"id": "f340d633",
"metadata": {
"editable": true
},
@@ -147,7 +147,7 @@
},
{
"cell_type": "markdown",
"id": "6fba5d18",
"id": "5c87f4a6",
"metadata": {
"editable": true
},
@@ -159,7 +159,7 @@
},
{
"cell_type": "markdown",
"id": "bec3e21d",
"id": "01b7082d",
"metadata": {
"editable": true
},
@@ -171,7 +171,7 @@
},
{
"cell_type": "markdown",
"id": "380e526b",
"id": "ba8f3cdb",
"metadata": {
"editable": true
},
@@ -183,7 +183,7 @@
},
{
"cell_type": "markdown",
"id": "97a04d2d",
"id": "118cc5e4",
"metadata": {
"editable": true
},
@@ -193,7 +193,7 @@
},
{
"cell_type": "markdown",
"id": "a378590f",
"id": "8e829cb2",
"metadata": {
"editable": true
},
@@ -205,7 +205,7 @@
},
{
"cell_type": "markdown",
"id": "f2d2d7ae",
"id": "91ce6d32",
"metadata": {
"editable": true
},
@@ -217,7 +217,7 @@
},
{
"cell_type": "markdown",
"id": "b2ffd80f",
"id": "1f24acd9",
"metadata": {
"editable": true
},
@@ -229,7 +229,7 @@
},
{
"cell_type": "markdown",
"id": "3c3a9191",
"id": "4f898e5c",
"metadata": {
"editable": true
},
@@ -241,7 +241,7 @@
},
{
"cell_type": "markdown",
"id": "4e3f0bb8",
"id": "dbd99565",
"metadata": {
"editable": true
},
@@ -253,7 +253,7 @@
},
{
"cell_type": "markdown",
"id": "040a6f88",
"id": "0f0cb9de",
"metadata": {
"editable": true
},
@@ -269,7 +269,7 @@
},
{
"cell_type": "markdown",
"id": "0107597b",
"id": "b74418c2",
"metadata": {
"editable": true
},
@@ -281,7 +281,7 @@
},
{
"cell_type": "markdown",
"id": "55fd1a9a",
"id": "3b0279b2",
"metadata": {
"editable": true
},
@@ -291,7 +291,7 @@
},
{
"cell_type": "markdown",
"id": "8a05634c",
"id": "f3fc4320",
"metadata": {
"editable": true
},
@@ -303,7 +303,7 @@
},
{
"cell_type": "markdown",
"id": "5d46ab65",
"id": "c98f5acf",
"metadata": {
"editable": true
},
@@ -315,7 +315,7 @@
},
{
"cell_type": "markdown",
"id": "478a39d8",
"id": "81e8044a",
"metadata": {
"editable": true
},
@@ -339,7 +339,7 @@
},
{
"cell_type": "markdown",
"id": "ed28dbd2",
"id": "c96c8fc3",
"metadata": {
"editable": true
},
@@ -351,7 +351,7 @@
},
{
"cell_type": "markdown",
"id": "1939c401",
"id": "90046598",
"metadata": {
"editable": true
},
@@ -361,7 +361,7 @@
},
{
"cell_type": "markdown",
"id": "10877c2d",
"id": "5ca23883",
"metadata": {
"editable": true
},
@@ -373,7 +373,7 @@
},
{
"cell_type": "markdown",
"id": "a7adfe54",
"id": "b4c131be",
"metadata": {
"editable": true
},
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

File diff suppressed because it is too large Load Diff