This commit is contained in:
Morten Hjorth-Jensen
2024-11-17 15:55:37 +01:00
parent df2f85227b
commit 3147098147
191 changed files with 20795 additions and 4445 deletions
+12 -11
View File
@@ -34,7 +34,7 @@
<link rel="stylesheet" type="text/css" href="_static/styles/sphinx-book-theme.css?v=a3416100" />
<link rel="stylesheet" type="text/css" href="_static/togglebutton.css?v=13237357" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
<link rel="stylesheet" type="text/css" href="_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css?v=be8a1c11" />
<link rel="stylesheet" type="text/css" href="_static/sphinx-thebe.css?v=4fa983c6" />
<link rel="stylesheet" type="text/css" href="_static/sphinx-design.min.css?v=95c83b7e" />
@@ -254,6 +254,9 @@
<li class="toctree-l1"><a class="reference internal" href="week44.html">Week 44, Convolutional Neural Networks (CNN)</a></li>
<li class="toctree-l1"><a class="reference internal" href="week45.html">Week 45, Convolutional Neural Networks (CCNs) and Recurrent Neural Networks (RNNs)</a></li>
<li class="toctree-l1"><a class="reference internal" href="week46.html">Week 46: Decision Trees, Ensemble methods and Random Forests</a></li>
<li class="toctree-l1"><a class="reference internal" href="week47.html">Week 47: From Decision Trees to Ensemble Methods, Random Forests and Boosting Methods</a></li>
<li class="toctree-l1"><a class="reference internal" href="exercisesweek47.html">Exercise week 47</a></li>
</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Projects</span></p>
<ul class="nav bd-sidenav">
@@ -618,13 +621,13 @@ predicting the target features of query instances is as follows:</p>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2nd degree coefficients:
zero power: -2.438518460940532
first power: 0.1509827118339884
second power: -0.0006570036917825709
zero power: -3.6801072677808095
first power: 0.14054303349959596
second power: -0.0002999281168222194
</pre></div>
</div>
<img alt="_images/cb807f945d26c27b5d10c322d3e69e7846c8b5f230d51fe19997ce05f3785597.png" src="_images/cb807f945d26c27b5d10c322d3e69e7846c8b5f230d51fe19997ce05f3785597.png" />
<img alt="_images/0fcc19beaa40191d8e4050ff43e050f87147eae5c14741ca3f4a02f29447ce0a.png" src="_images/0fcc19beaa40191d8e4050ff43e050f87147eae5c14741ca3f4a02f29447ce0a.png" />
<img alt="_images/928e4d75f6fb1b7a9e9c65e0db52145f075c9aed9b2e97bdef41ed3d957ace12.png" src="_images/928e4d75f6fb1b7a9e9c65e0db52145f075c9aed9b2e97bdef41ed3d957ace12.png" />
<img alt="_images/deb9b3ea985ab0b0e0d38d4431927a533e89aac53bf320412eff2b3ca55387f7.png" src="_images/deb9b3ea985ab0b0e0d38d4431927a533e89aac53bf320412eff2b3ca55387f7.png" />
</div>
</div>
</section>
@@ -1483,13 +1486,11 @@ attributes at each step while growing the tree.</p>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>(426, 30)
(143, 30)
Test set accuracy with Logistic Regression: 0.94
</pre></div>
</div>
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Test set accuracy with SVM: 0.63
</pre></div>
</div>
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Test set accuracy with Decision Trees: 0.90
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Test set accuracy with Logistic Regression: 0.94
Test set accuracy with SVM: 0.63
Test set accuracy with Decision Trees: 0.90
Test set accuracy Logistic Regression with scaled data: 0.96
Test set accuracy SVM with scaled data: 0.96
Test set accuracy with Decision Trees and scaled data: 0.89