This commit is contained in:
Morten Hjorth-Jensen
2024-11-17 15:55:37 +01:00
parent df2f85227b
commit 3147098147
191 changed files with 20795 additions and 4445 deletions
+62 -59
View File
@@ -34,7 +34,7 @@
<link rel="stylesheet" type="text/css" href="_static/styles/sphinx-book-theme.css?v=a3416100" />
<link rel="stylesheet" type="text/css" href="_static/togglebutton.css?v=13237357" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
<link rel="stylesheet" type="text/css" href="_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css?v=be8a1c11" />
<link rel="stylesheet" type="text/css" href="_static/sphinx-thebe.css?v=4fa983c6" />
<link rel="stylesheet" type="text/css" href="_static/sphinx-design.min.css?v=95c83b7e" />
@@ -254,6 +254,9 @@
<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, Convolutional Neural Networks (CCNs) and Recurrent Neural Networks (RNNs)</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</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">
@@ -1182,10 +1185,10 @@ covariance matrix through the <strong>np.linalg.eig()</strong> function.</p>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.1773607338287572
4.407282337374826
[[ 1.20040555 3.61585894]
[ 3.61585894 11.77930797]]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>-0.07163028969289174
3.7656278764040367
[[0.7647107 2.29986727]
[2.29986727 7.88107866]]
</pre></div>
</div>
</div>
@@ -1222,10 +1225,10 @@ a more brute force way. Here we scale the mean values for each column of the des
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.08179347557022959
1.4467442413216047
[[1. 0.59082482]
[0.59082482 1. ]]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.08212703190343323
2.425866065899094
[[1. 0.65333306]
[0.65333306 1. ]]
</pre></div>
</div>
</div>
@@ -1255,30 +1258,30 @@ this matrix we easily see that it is a positive definite matrix.</p>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[-1.84644069 -5.10787354]
[ 0.47775601 2.07770305]
[-0.54141982 -1.63948037]
[ 0.38543167 1.1728405 ]
[ 1.26358459 4.0297867 ]
[-0.22052391 0.26084085]
[-1.0053471 -4.21294424]
[ 0.93657669 1.24909665]
[-0.24706509 0.23743528]
[ 0.79744765 1.93259511]]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[-0.68481734 -2.74241828]
[-1.03710525 -3.82202137]
[ 0.71505805 2.54840587]
[ 0.4645853 0.98764188]
[-1.95392781 -4.51089358]
[ 0.79256149 3.37757489]
[-0.18745641 0.4457749 ]
[ 2.53950612 7.87543978]
[ 0.25354074 -0.28008123]
[-0.90194489 -3.87942287]]
0 1
0 -1.846441 -5.107874
1 0.477756 2.077703
2 -0.541420 -1.639480
3 0.385432 1.172841
4 1.263585 4.029787
5 -0.220524 0.260841
6 -1.005347 -4.212944
7 0.936577 1.249097
8 -0.247065 0.237435
9 0.797448 1.932595
0 -0.684817 -2.742418
1 -1.037105 -3.822021
2 0.715058 2.548406
3 0.464585 0.987642
4 -1.953928 -4.510894
5 0.792561 3.377575
6 -0.187456 0.445775
7 2.539506 7.875440
8 0.253541 -0.280081
9 -0.901945 -3.879423
0 1
0 1.000000 0.955977
1 0.955977 1.000000
0 1.000000 0.972082
1 0.972082 1.000000
</pre></div>
</div>
</div>
@@ -1335,37 +1338,37 @@ this matrix we easily see that it is a positive definite matrix.</p>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 0 1 2 3 4 5 6 7 \
0 0.0 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
1 0.0 0.105343 0.095336 0.103486 0.093680 0.085393 0.093763 0.085272
2 0.0 0.095336 0.089569 0.097692 0.090745 0.084581 0.091324 0.084771
3 0.0 0.103486 0.097692 0.108087 0.100345 0.093449 0.101684 0.094190
4 0.0 0.093680 0.090745 0.100345 0.094844 0.089679 0.096260 0.090450
5 0.0 0.085393 0.084581 0.093449 0.089679 0.085876 0.091107 0.086639
6 0.0 0.093763 0.091324 0.101684 0.096260 0.091107 0.098122 0.092213
7 0.0 0.085272 0.084771 0.094190 0.090450 0.086639 0.092213 0.087659
8 0.0 0.078085 0.079027 0.087624 0.085195 0.082446 0.086846 0.083375
9 0.0 0.071958 0.073975 0.081853 0.080447 0.078544 0.081982 0.079383
10 0.0 0.084253 0.084056 0.093748 0.090129 0.086392 0.092146 0.087612
11 0.0 0.077103 0.078235 0.087023 0.084667 0.081962 0.086513 0.083050
12 0.0 0.071014 0.073137 0.081146 0.079778 0.077897 0.081465 0.078863
13 0.0 0.065792 0.068653 0.075988 0.075397 0.074176 0.076936 0.075030
14 0.0 0.061284 0.064692 0.071442 0.071464 0.070776 0.072867 0.071529
1 0.0 0.070253 0.070611 0.070163 0.068562 0.067004 0.062136 0.060528
2 0.0 0.070611 0.071502 0.070808 0.069529 0.068256 0.062916 0.061526
3 0.0 0.070163 0.070808 0.074767 0.073368 0.071996 0.069069 0.067536
4 0.0 0.068562 0.069529 0.073368 0.072239 0.071113 0.068033 0.066707
5 0.0 0.067004 0.068256 0.071996 0.071113 0.070210 0.067007 0.065872
6 0.0 0.062136 0.062916 0.069069 0.068033 0.067007 0.065727 0.064490
7 0.0 0.060528 0.061526 0.067536 0.066707 0.065872 0.064490 0.063421
8 0.0 0.059023 0.060216 0.066097 0.065457 0.064796 0.063327 0.062411
9 0.0 0.057616 0.058984 0.064749 0.064281 0.063778 0.062233 0.061458
10 0.0 0.054096 0.054970 0.061945 0.061234 0.060520 0.060261 0.059314
11 0.0 0.052750 0.053781 0.060606 0.060054 0.059486 0.059137 0.058322
12 0.0 0.051499 0.052672 0.059359 0.058952 0.058518 0.058088 0.057394
13 0.0 0.050336 0.051637 0.058198 0.057923 0.057612 0.057109 0.056526
14 0.0 0.049255 0.050672 0.057116 0.056962 0.056764 0.056195 0.055714
8 9 10 11 12 13 14
0 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
1 0.078085 0.071958 0.084253 0.077103 0.071014 0.065792 0.061284
2 0.079027 0.073975 0.084056 0.078235 0.073137 0.068653 0.064692
3 0.087624 0.081853 0.093748 0.087023 0.081146 0.075988 0.071442
4 0.085195 0.080447 0.090129 0.084667 0.079778 0.075397 0.071464
5 0.082446 0.078544 0.086392 0.081962 0.077897 0.074176 0.070776
6 0.086846 0.081982 0.092146 0.086513 0.081465 0.076936 0.072867
7 0.083375 0.079383 0.087612 0.083050 0.078863 0.075030 0.071529
8 0.079972 0.076700 0.083329 0.079643 0.076172 0.072928 0.069915
9 0.076700 0.074026 0.079325 0.076360 0.073487 0.070744 0.068152
10 0.083329 0.079325 0.087745 0.083150 0.078926 0.075055 0.071515
11 0.079643 0.076360 0.083150 0.079436 0.075936 0.072663 0.069621
12 0.076172 0.073487 0.078926 0.075936 0.073039 0.070272 0.067658
13 0.072928 0.070744 0.075055 0.072663 0.070272 0.067937 0.065691
14 0.069915 0.068152 0.071515 0.069621 0.067658 0.065691 0.063765
1 0.059023 0.057616 0.054096 0.052750 0.051499 0.050336 0.049255
2 0.060216 0.058984 0.054970 0.053781 0.052672 0.051637 0.050672
3 0.066097 0.064749 0.061945 0.060606 0.059359 0.058198 0.057116
4 0.065457 0.064281 0.061234 0.060054 0.058952 0.057923 0.056962
5 0.064796 0.063778 0.060520 0.059486 0.058518 0.057612 0.056764
6 0.063327 0.062233 0.060261 0.059137 0.058088 0.057109 0.056195
7 0.062411 0.061458 0.059314 0.058322 0.057394 0.056526 0.055714
8 0.061541 0.060718 0.058420 0.057549 0.056732 0.055967 0.055250
9 0.060718 0.060014 0.057576 0.056817 0.056103 0.055433 0.054805
10 0.058420 0.057576 0.056198 0.055300 0.054459 0.053671 0.052934
11 0.057549 0.056817 0.055300 0.054507 0.053763 0.053066 0.052412
12 0.056732 0.056103 0.054459 0.053763 0.053109 0.052495 0.051918
13 0.055967 0.055433 0.053671 0.053066 0.052495 0.051957 0.051452
14 0.055250 0.054805 0.052934 0.052412 0.051918 0.051452 0.051015
</pre></div>
</div>
</div>