update on project 1
This commit is contained in:
@@ -208,12 +208,21 @@ MathJax.Hub.Config({
|
||||
<br>
|
||||
<h2 id="preamble-note-on-writing-reports-using-reference-material-ai-and-other-tools">Preamble: Note on writing reports, using reference material, AI and other tools </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 href="https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/ProjectWriting/projectwriting.ipynb" target="_blank"><tt>https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/ProjectWriting/projectwriting.ipynb</tt></a> gives some guidance. See also the grading suggestion at <a href="https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/EvaluationGrading/EvaluationForm.md" target="_blank"><tt>https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/EvaluationGrading/EvaluationForm.md</tt></a>.
|
||||
<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 href="https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/ProjectWriting/projectwriting.ipynb" target="_blank"><tt>https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/ProjectWriting/projectwriting.ipynb</tt></a>
|
||||
gives some guidance. See also the grading suggestion at
|
||||
<a href="https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/EvaluationGrading/EvaluationForm.md" target="_blank"><tt>https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/EvaluationGrading/EvaluationForm.md</tt></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>Furthermore, at
|
||||
<a href="https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/ReportExample/" target="_blank"><tt>https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/ReportExample/</tt></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
|
||||
@@ -221,25 +230,16 @@ indicated from their corresponding GitHub sites or websites, see for example how
|
||||
</p>
|
||||
|
||||
<p>We enocurage you to use tools like
|
||||
<a href="https://openai.com/chatgpt/" target="_blank">ChatGPT</a> in writing the report. If you use for example ChatGPT,
|
||||
<a href="https://openai.com/chatgpt/" target="_blank">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.
|
||||
be uploaded 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 href="https://scikit-learn.org/stable/auto_examples/preprocessing/plot_all_scaling.html#plot-all-scaling-standard-scaler-section" target="_blank"><tt>https://scikit-learn.org/stable/auto_examples/preprocessing/plot_all_scaling.html#plot-all-scaling-standard-scaler-section</tt></a></p>
|
||||
<h2 id="regression-analysis-and-resampling-methods">Regression analysis and resampling methods </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 href="https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/EvaluationGrading/EvaluationForm.md" target="_blank"><tt>https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/EvaluationGrading/EvaluationForm.md</tt></a>
|
||||
we detail how to write a report. Furthermore, at
|
||||
<a href="https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/ReportExample/" target="_blank"><tt>https://github.com/CompPhysics/MachineLearning/blob/master/doc/Projects/ReportExample/</tt></a>
|
||||
you can find examples of previous reports. How to write reports will
|
||||
also be discussed during the various lab sessions.
|
||||
give you an experience in writing scientific reports.
|
||||
</p>
|
||||
|
||||
<p><b>A small recommendation when developing the codes here</b>. Instead of
|
||||
@@ -364,6 +364,8 @@ plt<span style="color: #666666">.</span>show()
|
||||
</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 href="https://arxiv.org/abs/2401.11694" target="_blank"><tt>https://arxiv.org/abs/2401.11694</tt></a>.</p>
|
||||
<h3 id="part-a-ordinary-least-square-ols-on-the-franke-function">Part a) : Ordinary Least Square (OLS) on the Franke function </h3>
|
||||
|
||||
<p>We will generate our own dataset for a function
|
||||
@@ -423,6 +425,8 @@ approximately \( 2/3 \) to \( 4/5 \) of the data as training data.
|
||||
<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 href="https://scikit-learn.org/stable/auto_examples/preprocessing/plot_all_scaling.html#plot-all-scaling-standard-scaler-section" target="_blank"><tt>https://scikit-learn.org/stable/auto_examples/preprocessing/plot_all_scaling.html#plot-all-scaling-standard-scaler-section</tt></a>.</p>
|
||||
<h3 id="part-b-adding-ridge-regression-for-the-franke-function">Part b): Adding Ridge regression for the Franke function </h3>
|
||||
|
||||
<p>Write your own code for the Ridge method, either using matrix
|
||||
@@ -579,20 +583,18 @@ You can follow the code example in the jupyter-book at <a href="https://compphys
|
||||
</p>
|
||||
<h3 id="part-f-cross-validation-as-resampling-techniques-adding-more-complexity">Part f): Cross-validation as resampling techniques, adding more complexity </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 \( k \)-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
|
||||
<b>Scikit-Learn</b> if needed.
|
||||
code or use the functionality of <b>Scikit-Learn</b>) 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 <b>bootstrap</b> code. Comment your results. Try \( 5-10 \)
|
||||
folds. You can also compare your own cross-validation code with the
|
||||
one provided by <b>Scikit-Learn</b>.
|
||||
folds.
|
||||
</p>
|
||||
|
||||
<p>In addition to using the ordinary least squares method, you should include both Ridge and Lasso regression. </p>
|
||||
|
||||
Reference in New Issue
Block a user