added p1
This commit is contained in:
@@ -330,7 +330,7 @@ const thebe_selector_output = ".output, .cell_output"
|
||||
<!-- ipynb file if we had a myst markdown file -->
|
||||
|
||||
<!-- Download raw file -->
|
||||
<a class="dropdown-buttons" href="_sources/Project1.ipynb"><button type="button"
|
||||
<a class="dropdown-buttons" href="_sources/project1.ipynb"><button type="button"
|
||||
class="btn btn-secondary topbarbtn" title="Download source file" data-toggle="tooltip"
|
||||
data-placement="left">.ipynb</button></a>
|
||||
<!-- Download PDF via print -->
|
||||
@@ -541,33 +541,32 @@ doconce format html Project1.do.txt -->
|
||||
<p>Date: <strong>September 2</strong></p>
|
||||
<div class="section" id="preamble-note-on-writing-reports-using-reference-material-ai-and-other-tools">
|
||||
<h2>Preamble: Note on writing reports, using reference material, AI and other tools<a class="headerlink" href="#preamble-note-on-writing-reports-using-reference-material-ai-and-other-tools" title="Permalink to this headline">¶</a></h2>
|
||||
<p>We want you to answer the three different projects by handing reports written like a standard scientific/technical report.
|
||||
The link at <a class="reference external" href="https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/ProjectWriting/projectwriting.ipynb">https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/ProjectWriting/projectwriting.ipynb</a> gives some guidance. See also the grading suggestion at <a class="reference external" href="https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/EvaluationGrading/EvaluationForm.md">https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/EvaluationGrading/EvaluationForm.md</a>.</p>
|
||||
<p>When using codes from different sources that you have not developed yourself,
|
||||
you should refer to these in the bibliography of your report, indicating wherefrom you
|
||||
<p>We want you to answer the three different projects by handing in
|
||||
reports written like a standard scientific/technical report. The link
|
||||
at
|
||||
<a class="reference external" href="https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/ProjectWriting/projectwriting.ipynb">https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/ProjectWriting/projectwriting.ipynb</a>
|
||||
gives some guidance. See also the grading suggestion at
|
||||
<a class="reference external" href="https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/EvaluationGrading/EvaluationForm.md">https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/EvaluationGrading/EvaluationForm.md</a>.</p>
|
||||
<p>Furthermore, at
|
||||
<a class="reference external" href="https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/ReportExample/">https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/ReportExample/</a>
|
||||
you can find examples of previous reports. How to write reports will
|
||||
also be discussed during the various lab sessions. Please do ask us if you are in doubt.</p>
|
||||
<p>When using codes and material from other sources, you should refer to these in the bibliography of your report, indicating wherefrom you for example
|
||||
got the code, whether this is from the lecture notes, softwares like
|
||||
Scikit-Learn, TensorFlow, PyTorch or other sources. These should
|
||||
always be cited correctly. How to cite some of the libraries is often
|
||||
indicated from their corresponding GitHub sites or websites, see for example how to cite Scikit-Learn at <a class="reference external" href="https://scikit-learn.org/dev/about.html">https://scikit-learn.org/dev/about.html</a>.</p>
|
||||
<p>We enocurage you to use tools like
|
||||
<a class="reference external" href="https://openai.com/chatgpt/">ChatGPT</a> in writing the report. If you use for example ChatGPT,
|
||||
<a class="reference external" href="https://openai.com/chatgpt/">ChatGPT</a> or similar in writing the report. If you use for example ChatGPT,
|
||||
please do cite it properly and include (if possible) your questions and answers as an addition to the report. This can
|
||||
be uplodaed to for example your website, GitHub/GitLab or similar as supplemental material.</p>
|
||||
<p>On scaling, we recommend reading the following section from the scikit-learn software description, see <a class="reference external" href="https://scikit-learn.org/stable/auto_examples/preprocessing/plot_all_scaling.html#plot-all-scaling-standard-scaler-section">https://scikit-learn.org/stable/auto_examples/preprocessing/plot_all_scaling.html#plot-all-scaling-standard-scaler-section</a></p>
|
||||
be uploaded to for example your website, GitHub/GitLab or similar as supplemental material.</p>
|
||||
</div>
|
||||
<div class="section" id="regression-analysis-and-resampling-methods">
|
||||
<h2>Regression analysis and resampling methods<a class="headerlink" href="#regression-analysis-and-resampling-methods" title="Permalink to this headline">¶</a></h2>
|
||||
<p>The main aim of this project is to study in more detail various
|
||||
regression methods, including the Ordinary Least Squares (OLS) method.
|
||||
In addition to the scientific part, in this course we want also to
|
||||
give you an experience in writing scientific reports. The format for
|
||||
the delivery of your answers is namely that of a scientific report. At
|
||||
for example
|
||||
<a class="reference external" href="https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/EvaluationGrading/EvaluationForm.md">https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/EvaluationGrading/EvaluationForm.md</a>
|
||||
we detail how to write a report. Furthermore, at
|
||||
<a class="reference external" href="https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/ReportExample/">https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/ReportExample/</a>
|
||||
you can find examples of previous reports. How to write reports will
|
||||
also be discussed during the various lab sessions.</p>
|
||||
give you an experience in writing scientific reports.</p>
|
||||
<p><strong>A small recommendation when developing the codes here</strong>. Instead of
|
||||
jumping on to the two-dimensional function described below, we
|
||||
recommend to do the code development and testing with a simpler
|
||||
@@ -682,6 +681,7 @@ which polynomial fits the data best.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p>If you wish to compare your results with other on the Franke function or other popular functions tested with linear regression, see the list in Figure 1 of the article by Cook et al at <a class="reference external" href="https://arxiv.org/abs/2401.11694">https://arxiv.org/abs/2401.11694</a>.</p>
|
||||
</div>
|
||||
<div class="section" id="part-a-ordinary-least-square-ols-on-the-franke-function">
|
||||
<h3>Part a) : Ordinary Least Square (OLS) on the Franke function<a class="headerlink" href="#part-a-ordinary-least-square-ols-on-the-franke-function" title="Permalink to this headline">¶</a></h3>
|
||||
@@ -728,6 +728,7 @@ data and say test data. An accepted rule of thumb is to use
|
||||
approximately <span class="math notranslate nohighlight">\(2/3\)</span> to <span class="math notranslate nohighlight">\(4/5\)</span> of the data as training data.</p>
|
||||
<p>You can easily reuse the solutions to your exercises from week 35 and week 36.
|
||||
See also the lecture slides from week 35 and week 36.</p>
|
||||
<p>On scaling, we recommend reading the following section from the scikit-learn software description, see <a class="reference external" href="https://scikit-learn.org/stable/auto_examples/preprocessing/plot_all_scaling.html#plot-all-scaling-standard-scaler-section">https://scikit-learn.org/stable/auto_examples/preprocessing/plot_all_scaling.html#plot-all-scaling-standard-scaler-section</a>.</p>
|
||||
</div>
|
||||
<div class="section" id="part-b-adding-ridge-regression-for-the-franke-function">
|
||||
<h3>Part b): Adding Ridge regression for the Franke function<a class="headerlink" href="#part-b-adding-ridge-regression-for-the-franke-function" title="Permalink to this headline">¶</a></h3>
|
||||
@@ -854,16 +855,14 @@ You can follow the code example in the jupyter-book at <a class="reference exter
|
||||
</div>
|
||||
<div class="section" id="part-f-cross-validation-as-resampling-techniques-adding-more-complexity">
|
||||
<h3>Part f): Cross-validation as resampling techniques, adding more complexity<a class="headerlink" href="#part-f-cross-validation-as-resampling-techniques-adding-more-complexity" title="Permalink to this headline">¶</a></h3>
|
||||
<p>The aim here is to write your own code for another widely popular
|
||||
<p>The aim here is to implement another widely popular
|
||||
resampling technique, the so-called cross-validation method.</p>
|
||||
<p>Implement the <span class="math notranslate nohighlight">\(k\)</span>-fold cross-validation algorithm (write your own
|
||||
code) and evaluate again the MSE function resulting
|
||||
from the test folds. You can compare your own code with that from
|
||||
<strong>Scikit-Learn</strong> if needed.</p>
|
||||
code or use the functionality of <strong>Scikit-Learn</strong>) and evaluate again the MSE function resulting
|
||||
from the test folds.</p>
|
||||
<p>Compare the MSE you get from your cross-validation code with the one
|
||||
you got from your <strong>bootstrap</strong> code. Comment your results. Try <span class="math notranslate nohighlight">\(5-10\)</span>
|
||||
folds. You can also compare your own cross-validation code with the
|
||||
one provided by <strong>Scikit-Learn</strong>.</p>
|
||||
folds.</p>
|
||||
<p>In addition to using the ordinary least squares method, you should include both Ridge and Lasso regression.</p>
|
||||
</div>
|
||||
<div class="section" id="part-g-analysis-of-real-data">
|
||||
|
||||
Reference in New Issue
Block a user