small update

This commit is contained in:
Morten Hjorth-Jensen
2023-09-03 14:22:23 +02:00
parent 3cc1f701c0
commit 7f3ecb7bb7
103 changed files with 16669 additions and 1168 deletions
+40 -30
View File
@@ -268,6 +268,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: Statistical interpretation of Linear Regression and Resampling techniques
</a>
</li>
</ul>
</div>
@@ -1733,8 +1743,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>[-0.03483677 -1.06136773 0.56481272 -0.35947075 -1.64972151 -1.58590795
-1.17428293 0.7225597 -1.14061742 -1.22893751]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[-0.75408649 -0.05177092 -0.07339251 1.49372893 -1.21467644 0.24712854
0.67554302 -0.45143018 0.34212496 0.63262164]
</pre></div>
</div>
</div>
@@ -1959,26 +1969,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.24279008 0.63112036 0.80947943 0.97509292 0.19425617 0.3957482
0.1655226 0.83760781 0.07995375 0.76400155]
[0.75621895 0.20893514 0.93082503 0.79419162 0.02783644 0.21296315
0.64298419 0.34578026 0.60975366 0.46369869]
[0.77859437 0.23477043 0.35438626 0.63115792 0.2460037 0.35568525
0.0825971 0.94117118 0.14900336 0.30035718]
[0.36692356 0.78972773 0.67655635 0.67160204 0.80108096 0.31507591
0.21328866 0.41340248 0.3005849 0.40672425]
[0.21922061 0.88274486 0.86572911 0.06486061 0.07565581 0.26678445
0.03265139 0.22090974 0.33135331 0.66973261]
[0.7221662 0.96941962 0.39707147 0.24929083 0.31531613 0.33079801
0.06538944 0.42352791 0.94227931 0.27809912]
[0.07195822 0.31719317 0.47248297 0.18264218 0.64033527 0.51146442
0.49545491 0.91936525 0.81656508 0.78329097]
[0.58666142 0.01646892 0.11029323 0.67442363 0.6914791 0.87902877
0.98950411 0.27090196 0.08732305 0.89543736]
[0.25253892 0.57505712 0.24848907 0.9631064 0.46312791 0.96431281
0.28744729 0.09772449 0.17676228 0.51656406]
[0.68664664 0.63281351 0.62806444 0.36809474 0.98129668 0.62914124
0.37885034 0.6577093 0.57947706 0.24688732]]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[0.11167579 0.88778091 0.24908246 0.32566092 0.37585988 0.61893735
0.58574143 0.60081665 0.81065392 0.00509527]
[0.02840884 0.39600607 0.96810393 0.28213741 0.19237495 0.54219245
0.85581869 0.17928538 0.43185254 0.37624303]
[0.82045496 0.22828694 0.52773891 0.54526769 0.84708672 0.59118929
0.18221254 0.94640767 0.25328924 0.03192893]
[0.98328759 0.68996179 0.81168086 0.08086066 0.10659682 0.66599246
0.78035464 0.57403561 0.96995249 0.78990036]
[0.9909606 0.39920034 0.59813773 0.85982436 0.66665241 0.60522226
0.08889302 0.74433499 0.85630009 0.2745333 ]
[0.60826013 0.94413158 0.32305813 0.27011455 0.38636467 0.02568505
0.0610602 0.92275042 0.09189927 0.67177934]
[0.72097126 0.35819312 0.98060869 0.46573851 0.70482138 0.51749473
0.17012048 0.53752634 0.66726905 0.08874264]
[0.79974359 0.05023564 0.84150451 0.05491301 0.90643349 0.75505597
0.7300372 0.57445493 0.39626502 0.22016672]
[0.44463741 0.01448144 0.01167264 0.85595734 0.09989861 0.81007682
0.30844205 0.68075712 0.9067362 0.96317459]
[0.87327422 0.12086283 0.50504743 0.60715594 0.9440887 0.54041662
0.7316348 0.42976761 0.63933182 0.22772039]]
</pre></div>
</div>
</div>
@@ -2033,13 +2043,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.19542686939553625
3.3929303193461995
-0.3886211842840971
[[ 0.96552318 2.67354673 2.55640013]
[ 2.67354673 8.3318361 7.41646135]
[ 2.55640013 7.41646135 11.19890453]]
[18.10686259 0.09289204 2.29650918]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>-0.05279147850537411
3.9698377974429513
0.22403397554517984
[[ 1.03173163 3.03859372 3.15084741]
[ 3.03859372 9.96514849 9.33589475]
[ 3.15084741 9.33589475 15.3141149 ]]
[23.20313883 0.08502083 3.02283536]
</pre></div>
</div>
</div>
@@ -2262,7 +2272,7 @@ Name: Aragorn, dtype: object
</div>
</div>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/var/folders/td/3yk470mj5p931p9dtkk0y6jw0000gn/T/ipykernel_20702/1326197715.py:6: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/var/folders/td/3yk470mj5p931p9dtkk0y6jw0000gn/T/ipykernel_16293/1326197715.py:6: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
data_pandas=data_pandas.append(pd.DataFrame(new_hobbit, index=[&#39;Pippin&#39;]))
</pre></div>
</div>