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
+29 -24
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">
@@ -1636,7 +1641,7 @@ Since we are not using <strong>Scikit-Learn</strong> here we can define our own
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.9958983289118531
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.9969513794144311
</pre></div>
</div>
</div>
@@ -1653,7 +1658,7 @@ Since we are not using <strong>Scikit-Learn</strong> here we can define our own
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.010348289064969316
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.007658477904313023
</pre></div>
</div>
</div>
@@ -1668,23 +1673,23 @@ Since we are not using <strong>Scikit-Learn</strong> here we can define our own
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[0.01250964 0.00679013 0.06416459 0.02126205 0.01247909 0.00080497
0.07373479 0.00940611 0.04794409 0.02361665 0.03311432 0.00114401
0.06392846 0.0813156 0.03578526 0.00691012 0.05978512 0.02928194
0.00209403 0.02014577 0.13600596 0.0178462 0.02016185 0.00574735
0.029003 0.04877931 0.03796359 0.02374496 0.06622369 0.02965159
0.01655384 0.00290613 0.00560098 0.00641423 0.05549529 0.03916813
0.01288787 0.02472936 0.02564828 0.03365012 0.03642173 0.02102403
0.00633289 0.02631942 0.02164667 0.04899367 0.00593362 0.03664879
0.00250787 0.00791263 0.01480256 0.01329403 0.02151521 0.00133638
0.01717549 0.01681612 0.03358833 0.01003519 0.00659604 0.02026756
0.01234261 0.058967 0.0126711 0.0039259 0.00254973 0.04315855
0.02909574 0.02386932 0.02404706 0.02769274 0.05804539 0.00732665
0.03868372 0.00513051 0.00172865 0.00353938 0.03076019 0.01643795
0.00458631 0.01817048 0.08667591 0.01706166 0.00637188 0.0930438
0.01506354 0.02787184 0.0002926 0.09398153 0.00570321 0.03511387
0.01075018 0.00170809 0.00943959 0.02654585 0.00399972 0.03057995
0.00211418 0.00685287 0.02330799 0.04191323]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[0.00053122 0.03115122 0.00789262 0.02218076 0.00573727 0.00557893
0.00099778 0.01234 0.03960002 0.03596557 0.0134113 0.00556946
0.00136125 0.10719554 0.02754248 0.01409478 0.01760144 0.01032533
0.01241284 0.01039879 0.00100913 0.02944152 0.00512599 0.00747773
0.06260611 0.0231353 0.01624447 0.02923006 0.0046544 0.07332248
0.02338085 0.02920675 0.02286267 0.04353549 0.00569512 0.02664408
0.01098247 0.02156565 0.03529801 0.00507531 0.00554202 0.05141614
0.02031987 0.01244297 0.01551724 0.00174738 0.01044475 0.01161645
0.02622039 0.03285784 0.00522055 0.00687309 0.0195302 0.04101344
0.00816675 0.0206033 0.04046513 0.02189863 0.06777772 0.04832356
0.00114855 0.08660891 0.00586355 0.00625051 0.00939407 0.00108471
0.03948301 0.02527621 0.03205795 0.11042239 0.02594314 0.05176711
0.03396658 0.00889475 0.02632742 0.02502325 0.01266999 0.00455966
0.03853313 0.01543076 0.00617221 0.00552462 0.01573062 0.01035006
0.00162921 0.00974758 0.00812487 0.01881237 0.06690071 0.01499192
0.04652794 0.04061345 0.04495752 0.00566707 0.01006984 0.00519717
0.00151416 0.03214829 0.00891702 0.01844822]
</pre></div>
</div>
</div>
@@ -1753,15 +1758,15 @@ but now splitting the data into a training set and a test set.</p>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[ 2.04641529 -0.77354301 7.7511273 -3.70241548 1.69515531]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[ 1.97243946 0.15593478 4.54011398 0.56342158 -0.19299283]
Training R2
0.9958589197366403
0.9948998579029953
Training MSE
0.008560581831215528
0.009396472959497925
Test R2
0.997252717901263
0.9951059931014423
Test MSE
0.00683875021199284
0.010612904886352397
</pre></div>
</div>
</div>