This commit is contained in:
Morten Hjorth-Jensen
2024-09-10 12:06:15 +02:00
parent 4a3985783f
commit 4e5c11dfa3
143 changed files with 2073 additions and 6207 deletions
+58 -31
View File
@@ -275,7 +275,34 @@ const thebe_selector_output = ".output, .cell_output"
</li>
<li class="toctree-l1">
<a class="reference internal" href="week36.html">
Week 36: Linear Rgeression and Statistical interpretations
Week 36: Linear Regression and Statistical interpretations
</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>
</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 7 (midnight), 2024
</a>
</li>
</ul>
@@ -1641,8 +1668,8 @@ developed in the 1970s, namely EISPACK and LINPACK. We describe them shortly he
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[ 1.55217048 0.41383693 0.79189954 2.5545673 -1.22668089 -0.00445922
-1.2662882 -0.64605756 0.5972962 -0.22398902]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[ 0.27600259 -1.0831367 -2.92599642 -0.36091273 -0.39398622 -1.03979291
0.93237862 1.4635149 0.01552874 0.4761747 ]
</pre></div>
</div>
</div>
@@ -1867,26 +1894,26 @@ lowercase letters for vectors and uppercase letters for matrices)</p>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[0.35514368 0.73972932 0.76212914 0.13867518 0.13118774 0.68772578
0.99509854 0.72532661 0.31471398 0.74840039]
[0.50470576 0.98650215 0.40892859 0.45312744 0.73435999 0.02180258
0.09650726 0.01846688 0.55640817 0.42742185]
[0.66865889 0.38157698 0.90914803 0.6377013 0.57169969 0.62958747
0.0334336 0.31566127 0.85013763 0.15807529]
[0.47647836 0.36417623 0.63023737 0.23117504 0.3199881 0.61810248
0.46659511 0.34693879 0.60314816 0.56963365]
[0.89800468 0.93792515 0.21378153 0.81700981 0.79689487 0.11967653
0.86528841 0.27518808 0.92397145 0.35768161]
[0.89906633 0.80291466 0.94897736 0.41237041 0.13858317 0.80006807
0.04373024 0.32186558 0.8492168 0.49905638]
[0.09900923 0.98650823 0.62528192 0.64961094 0.00987022 0.57652181
0.93176482 0.84388592 0.58384652 0.35577273]
[0.01312254 0.0494262 0.93742122 0.45937581 0.76428845 0.09004029
0.25529356 0.51566561 0.75079864 0.41790782]
[0.44049151 0.89794988 0.98368659 0.7458376 0.13633112 0.81194394
0.54213195 0.36985812 0.30873019 0.0538391 ]
[0.58310989 0.51631859 0.78546777 0.17576105 0.11368985 0.01384313
0.1949983 0.55960462 0.01496065 0.63588621]]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[0.89184351 0.97435908 0.73122034 0.58084123 0.86891741 0.74957448
0.65593984 0.06020264 0.48306473 0.47729832]
[0.86445334 0.75532041 0.31162122 0.57261202 0.2257449 0.31160886
0.68591105 0.01084359 0.57192197 0.83466807]
[0.39525059 0.32684035 0.91648657 0.34904819 0.47052809 0.7029975
0.0057065 0.1074792 0.6389681 0.16567361]
[0.46984559 0.3241988 0.77559615 0.16431956 0.92604454 0.08624193
0.17567503 0.96919836 0.00859693 0.39692815]
[0.26817703 0.49224801 0.05240397 0.14260706 0.91365263 0.2876045
0.38381781 0.23526911 0.28109198 0.01024875]
[0.47892661 0.88377332 0.51858116 0.02345858 0.52087499 0.63309898
0.589841 0.19433318 0.24071032 0.76262775]
[0.67464946 0.69903406 0.44838546 0.72952595 0.41987877 0.0907958
0.21998973 0.54856099 0.54725976 0.29390668]
[0.75600095 0.3882273 0.13024288 0.19677112 0.6401576 0.34599598
0.62351789 0.49211524 0.6267112 0.82121282]
[0.77959897 0.35714377 0.08946029 0.70039784 0.60418171 0.618746
0.46107913 0.41636775 0.94625725 0.85079059]
[0.0525733 0.16201555 0.18147009 0.41408221 0.15173932 0.88501323
0.01376216 0.8030191 0.61192203 0.64399916]]
</pre></div>
</div>
</div>
@@ -1941,13 +1968,13 @@ 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.014891664497538563
3.926564304542535
-0.09715081560068299
[[ 1.04876305 3.19688765 3.16855533]
[ 3.19688765 10.60958647 9.74474996]
[ 3.16855533 9.74474996 15.34369306]]
[23.87923449 0.07172103 3.05108705]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.028638258927275215
4.036527092051294
0.19009085621304586
[[ 1.07405556 3.2781456 2.97935648]
[ 3.2781456 11.21805426 9.35966688]
[ 2.97935648 9.35966688 14.77152924]]
[23.38440469 0.10036694 3.57886743]
</pre></div>
</div>
</div>
@@ -2172,7 +2199,7 @@ Name: Aragorn, dtype: object
<div class="cell_output docutils container">
<div class="output traceback highlight-ipythontb notranslate"><div class="highlight"><pre><span></span><span class="gt">---------------------------------------------------------------------------</span>
<span class="ne">AttributeError</span><span class="g g-Whitespace"> </span>Traceback (most recent call last)
<span class="nn">/var/folders/td/3yk470mj5p931p9dtkk0y6jw0000gn/T/ipykernel_49291/1326197715.py</span> in <span class="ni">?</span><span class="nt">()</span>
<span class="nn">/var/folders/td/3yk470mj5p931p9dtkk0y6jw0000gn/T/ipykernel_1539/1326197715.py</span> in <span class="ni">?</span><span class="nt">()</span>
<span class="ne">----&gt; </span><span class="mi">6</span> <span class="n">new_hobbit</span> <span class="o">=</span> <span class="p">{</span><span class="s1">&#39;First Name&#39;</span><span class="p">:</span> <span class="p">[</span><span class="s2">&quot;Peregrin&quot;</span><span class="p">],</span>
<span class="g g-Whitespace"> </span><span class="mi">7</span> <span class="s1">&#39;Last Name&#39;</span><span class="p">:</span> <span class="p">[</span><span class="s2">&quot;Took&quot;</span><span class="p">],</span>
<span class="g g-Whitespace"> </span><span class="mi">8</span> <span class="s1">&#39;Place of birth&#39;</span><span class="p">:</span> <span class="p">[</span><span class="s2">&quot;Shire&quot;</span><span class="p">],</span>