update on jupyter-book

This commit is contained in:
Morten Hjorth-Jensen
2024-09-17 14:17:00 +02:00
parent 999bca6d69
commit 8afe465b5f
95 changed files with 2624 additions and 1515 deletions
+35 -30
View File
@@ -293,6 +293,11 @@ const thebe_selector_output = ".output, .cell_output"
Exercises week 38
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="week38.html">
Week 38: Logistic Regression and Optimization
</a>
</li>
</ul>
<p aria-level="2" class="caption" role="heading">
<span class="caption-text">
@@ -1668,8 +1673,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>[ 2.93289669 0.72236654 0.6671767 1.31936237 -0.39865452 -0.86247117
0.64411666 -1.56072658 1.17367225 0.96391888]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[-1.24454968 1.12382443 0.67088558 1.12498355 1.0342028 -0.44563226
0.14599499 0.07378525 0.03479236 -1.2976637 ]
</pre></div>
</div>
</div>
@@ -1894,26 +1899,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.84159992 0.17563274 0.40632663 0.78278086 0.22919456 0.7510197
0.57584612 0.46342934 0.4745474 0.65543115]
[0.59730078 0.77482712 0.70301068 0.29223521 0.15202654 0.74883972
0.48827791 0.09346106 0.58890784 0.7766443 ]
[0.59184268 0.65554958 0.91546928 0.87340054 0.48200792 0.14824254
0.36185989 0.98654811 0.0473916 0.24032019]
[0.87788573 0.61774362 0.82914126 0.23139242 0.32651488 0.61621902
0.59908884 0.49381549 0.97716508 0.21531156]
[0.01654574 0.32393078 0.91854134 0.93909866 0.75300068 0.53942728
0.66063786 0.48867802 0.53149078 0.6831505 ]
[0.57847325 0.42774546 0.24433117 0.07531349 0.98190064 0.68879472
0.18485685 0.85422602 0.58493681 0.00348246]
[0.8517571 0.29620357 0.3096154 0.18409254 0.54880148 0.29881308
0.7509571 0.46891823 0.42124182 0.38203725]
[0.59963873 0.51154388 0.28399125 0.60026673 0.49074536 0.32906581
0.4069157 0.89724282 0.48326853 0.43373107]
[0.28415767 0.95518112 0.68257097 0.59215613 0.64373221 0.81283649
0.04262217 0.80979265 0.73337355 0.2077068 ]
[0.87696461 0.09529067 0.39540235 0.68352799 0.1598058 0.03648711
0.73018893 0.60921896 0.33220123 0.50887105]]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[0.50306335 0.66487438 0.75677341 0.01349244 0.2813829 0.80056922
0.07974741 0.63046054 0.05098714 0.26479234]
[0.17861414 0.3388112 0.30005983 0.35520169 0.5399913 0.51709529
0.36339156 0.71582784 0.34568909 0.23164401]
[0.11922031 0.771128 0.20051449 0.07890044 0.96866031 0.34346829
0.5116375 0.52732966 0.80637385 0.69435454]
[0.94291287 0.29238145 0.84711297 0.22849742 0.56967917 0.1636508
0.15833751 0.84254917 0.05068486 0.54057582]
[0.17856374 0.71524686 0.66498292 0.00256622 0.72427854 0.50667812
0.0894015 0.22688898 0.54873252 0.31727523]
[0.73578772 0.81479491 0.45620975 0.2662452 0.47757553 0.64322974
0.54921401 0.70630967 0.51136852 0.59683811]
[0.37837864 0.71860732 0.35320952 0.67495943 0.16188604 0.41925189
0.28956161 0.06685171 0.75654448 0.28923 ]
[0.91099021 0.8387133 0.18277213 0.40418675 0.7249499 0.46415522
0.35018806 0.87148597 0.94141801 0.50911289]
[0.86066395 0.12235593 0.82418352 0.57881465 0.82559478 0.96826039
0.291056 0.41675053 0.06430789 0.96432396]
[0.91270333 0.64362404 0.18816387 0.81318307 0.47989224 0.20375464
0.33145794 0.92192012 0.33596404 0.18085537]]
</pre></div>
</div>
</div>
@@ -1968,13 +1973,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.03681479262838276
3.936877889972962
-0.43976975777097144
[[ 1.18742521 3.6407249 4.14122256]
[ 3.6407249 12.06804775 12.20775115]
[ 4.14122256 12.20775115 20.86009093]]
[30.46593404 0.0604888 3.58914105]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.1385510301651882
4.344176915013831
0.13134148011170077
[[ 0.87981676 2.52698542 2.65591748]
[ 2.52698542 8.29861395 7.76790092]
[ 2.65591748 7.76790092 13.4831139 ]]
[19.77845284 0.09028702 2.79280475]
</pre></div>
</div>
</div>
@@ -2199,7 +2204,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_6690/1326197715.py</span> in <span class="ni">?</span><span class="nt">()</span>
<span class="nn">/var/folders/td/3yk470mj5p931p9dtkk0y6jw0000gn/T/ipykernel_58840/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>