updated book

This commit is contained in:
Morten Hjorth-Jensen
2024-09-11 05:36:59 +02:00
parent 19a064b629
commit 3b762e5606
42 changed files with 580 additions and 524 deletions
+24 -24
View File
@@ -1636,7 +1636,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.9952537939995855
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.9958983289118531
</pre></div>
</div>
</div>
@@ -1653,7 +1653,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.011208613520466846
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.010348289064969316
</pre></div>
</div>
</div>
@@ -1668,23 +1668,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.05040878 0.02601643 0.01922269 0.05006037 0.02572685 0.10595991
0.04487298 0.00334047 0.00330046 0.00606382 0.02500488 0.03247316
0.01897462 0.0241039 0.0606958 0.00472276 0.01756114 0.06536971
0.02809972 0.04955942 0.00956827 0.00667611 0.02576358 0.04216532
0.04808723 0.01625794 0.00282226 0.00220013 0.00017733 0.0211429
0.02207054 0.02156196 0.0694226 0.01119738 0.0041148 0.01783096
0.0062202 0.03317599 0.02032056 0.00798909 0.06901081 0.01353638
0.01863203 0.01179128 0.01178857 0.00634299 0.01793261 0.00018053
0.13055762 0.02441422 0.05029018 0.0253208 0.01979808 0.02693015
0.05336637 0.01373484 0.09291806 0.00168745 0.04588592 0.01013849
0.04018985 0.03887801 0.03033791 0.01811279 0.02540212 0.02980537
0.02784266 0.03158013 0.01060492 0.01620955 0.00942574 0.0043587
0.02651857 0.00053001 0.0337609 0.01131771 0.00023813 0.02091662
0.01315875 0.00434043 0.04161572 0.05045 0.0121289 0.01532738
0.02334754 0.01206221 0.00930146 0.03244944 0.00702721 0.02576685
0.05224117 0.0262517 0.02946852 0.09604976 0.01406777 0.02183817
0.0164974 0.02322594 0.04238763 0.00647029]
<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]
</pre></div>
</div>
</div>
@@ -1753,15 +1753,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>[ 1.82079885 2.45560415 -4.73595198 14.38102552 -7.04838148]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[ 2.04641529 -0.77354301 7.7511273 -3.70241548 1.69515531]
Training R2
0.9952183728736417
0.9958589197366403
Training MSE
0.009338082195270294
0.008560581831215528
Test R2
0.9969461173312454
0.997252717901263
Test MSE
0.008043811612683473
0.00683875021199284
</pre></div>
</div>
</div>