Files
FYS-STK4155/doc/Projects/2025/Project1/html/Project1-bs.html
T
Morten Hjorth-Jensen 8eb5ccc1e2 update
2025-09-02 06:25:20 +02:00

239 lines
12 KiB
HTML

<!--
HTML file automatically generated from DocOnce source
(https://github.com/doconce/doconce/)
doconce format html Project1.do.txt --html_style=bootstrap --pygments_html_style=default --html_admon=bootstrap_panel --html_output=Project1-bs
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="DocOnce: https://github.com/doconce/doconce/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Project 1 on Machine Learning, deadline October 6 (midnight), 2025">
<title>Project 1 on Machine Learning, deadline October 6 (midnight), 2025</title>
<!-- Bootstrap style: bootstrap -->
<!-- doconce format html Project1.do.txt --html_style=bootstrap --pygments_html_style=default --html_admon=bootstrap_panel --html_output=Project1-bs -->
<link href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<!-- not necessary
<link href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
-->
<style type="text/css">
/* Add scrollbar to dropdown menus in bootstrap navigation bar */
.dropdown-menu {
height: auto;
max-height: 400px;
overflow-x: hidden;
}
/* Adds an invisible element before each target to offset for the navigation
bar */
.anchor::before {
content:"";
display:block;
height:50px; /* fixed header height for style bootstrap */
margin:-50px 0 0; /* negative fixed header height */
}
</style>
</head>
<!-- tocinfo
{'highest level': 2,
'sections': [('Preamble: Note on writing reports, using reference material, '
'AI and other tools',
2,
None,
'preamble-note-on-writing-reports-using-reference-material-ai-and-other-tools'),
('Regression analysis and resampling methods',
2,
None,
'regression-analysis-and-resampling-methods'),
('Part a : Ordinary Least Square (OLS) for the Runge function',
3,
None,
'part-a-ordinary-least-square-ols-for-the-runge-function'),
('Part b: Adding Ridge regression for the Runge function',
3,
None,
'part-b-adding-ridge-regression-for-the-runge-function'),
('Part c: Writing your own gradient descent code',
3,
None,
'part-c-writing-your-own-gradient-descent-code'),
('Part d: Including momentum and more advanced ways to update '
'the learning the rate',
3,
None,
'part-d-including-momentum-and-more-advanced-ways-to-update-the-learning-the-rate'),
('Part e: Writing our own code for Lasso regression',
3,
None,
'part-e-writing-our-own-code-for-lasso-regression'),
('Part f: Stochastic gradient descent',
3,
None,
'part-f-stochastic-gradient-descent'),
('Part g: Bias-variance trade-off and resampling techniques',
3,
None,
'part-g-bias-variance-trade-off-and-resampling-techniques'),
('Part h): Cross-validation as resampling techniques, adding '
'more complexity',
3,
None,
'part-h-cross-validation-as-resampling-techniques-adding-more-complexity'),
('Background literature', 2, None, 'background-literature'),
('Introduction to numerical projects',
2,
None,
'introduction-to-numerical-projects'),
('Format for electronic delivery of report and programs',
2,
None,
'format-for-electronic-delivery-of-report-and-programs'),
('Software and needed installations',
2,
None,
'software-and-needed-installations')]}
end of tocinfo -->
<body>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: {
equationNumbers: { autoNumber: "none" },
extensions: ["AMSmath.js", "AMSsymbols.js", "autobold.js", "color.js"]
}
});
</script>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<!-- Bootstrap navigation bar -->
<div class="navbar navbar-default navbar-fixed-top">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="Project1-bs.html">Project 1 on Machine Learning, deadline October 6 (midnight), 2025</a>
</div>
<div class="navbar-collapse collapse navbar-responsive-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Contents <b class="caret"></b></a>
<ul class="dropdown-menu">
<!-- navigation toc: --> <li><a href="#preamble-note-on-writing-reports-using-reference-material-ai-and-other-tools" style="font-size: 80%;"><b>Preamble: Note on writing reports, using reference material, AI and other tools</b></a></li>
<!-- navigation toc: --> <li><a href="._Project1-bs001.html#regression-analysis-and-resampling-methods" style="font-size: 80%;"><b>Regression analysis and resampling methods</b></a></li>
<!-- navigation toc: --> <li><a href="._Project1-bs001.html#part-a-ordinary-least-square-ols-for-the-runge-function" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Part a : Ordinary Least Square (OLS) for the Runge function</a></li>
<!-- navigation toc: --> <li><a href="._Project1-bs001.html#part-b-adding-ridge-regression-for-the-runge-function" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Part b: Adding Ridge regression for the Runge function</a></li>
<!-- navigation toc: --> <li><a href="._Project1-bs001.html#part-c-writing-your-own-gradient-descent-code" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Part c: Writing your own gradient descent code</a></li>
<!-- navigation toc: --> <li><a href="._Project1-bs001.html#part-d-including-momentum-and-more-advanced-ways-to-update-the-learning-the-rate" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Part d: Including momentum and more advanced ways to update the learning the rate</a></li>
<!-- navigation toc: --> <li><a href="._Project1-bs001.html#part-e-writing-our-own-code-for-lasso-regression" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Part e: Writing our own code for Lasso regression</a></li>
<!-- navigation toc: --> <li><a href="._Project1-bs001.html#part-f-stochastic-gradient-descent" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Part f: Stochastic gradient descent</a></li>
<!-- navigation toc: --> <li><a href="._Project1-bs001.html#part-g-bias-variance-trade-off-and-resampling-techniques" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Part g: Bias-variance trade-off and resampling techniques</a></li>
<!-- navigation toc: --> <li><a href="._Project1-bs001.html#part-h-cross-validation-as-resampling-techniques-adding-more-complexity" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Part h): Cross-validation as resampling techniques, adding more complexity</a></li>
<!-- navigation toc: --> <li><a href="._Project1-bs001.html#background-literature" style="font-size: 80%;"><b>Background literature</b></a></li>
<!-- navigation toc: --> <li><a href="._Project1-bs001.html#introduction-to-numerical-projects" style="font-size: 80%;"><b>Introduction to numerical projects</b></a></li>
<!-- navigation toc: --> <li><a href="._Project1-bs001.html#format-for-electronic-delivery-of-report-and-programs" style="font-size: 80%;"><b>Format for electronic delivery of report and programs</b></a></li>
<!-- navigation toc: --> <li><a href="._Project1-bs001.html#software-and-needed-installations" style="font-size: 80%;"><b>Software and needed installations</b></a></li>
</ul>
</li>
</ul>
</div>
</div>
</div> <!-- end of navigation bar -->
<div class="container">
<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p> <!-- add vertical space -->
<a name="part0000"></a>
<!-- ------------------- main content ---------------------- -->
<div class="jumbotron">
<center>
<h1>Project 1 on Machine Learning, deadline October 6 (midnight), 2025</h1>
</center> <!-- document title -->
<!-- author(s): Data Analysis and Machine Learning FYS-STK3155/FYS4155 -->
<center>
<b>Data Analysis and Machine Learning FYS-STK3155/FYS4155</b>
</center>
<!-- institution -->
<center>
<b>University of Oslo, Norway</b>
</center>
<br>
<center>
<h4>September 2</h4>
</center> <!-- date -->
<br>
</div> <!-- end jumbotron -->
<h2 id="preamble-note-on-writing-reports-using-reference-material-ai-and-other-tools" class="anchor">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 in
reports written like a standard scientific/technical report. The
links at
<a href="https://github.com/CompPhysics/MachineLearning/tree/master/doc/Projects" target="_self"><tt>https://github.com/CompPhysics/MachineLearning/tree/master/doc/Projects</tt></a>
contain more information. There you can find examples of previous
reports, the projects themselves, how we rade reports etc. 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 sources
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 href="https://scikit-learn.org/dev/about.html" target="_self"><tt>https://scikit-learn.org/dev/about.html</tt></a>.
</p>
<p>We enocurage you to use tools like
<a href="https://openai.com/chatgpt/" target="_self">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 uploaded to for example your website, GitHub/GitLab or similar as supplemental material.
</p>
<p>If you would like to study other data sets, feel free to propose other
sets. What we have proposed here are mere suggestions from our
side. If you opt for another data set, consider using a set which has
been studied in the scientific literature. This makes it easier for
you to compare and analyze your results. Comparing with existing
results from the scientific literature is also an essential element of
the scientific discussion. The University of California at Irvine
with its Machine Learning repository at
<a href="https://archive.ics.uci.edu/ml/index.php" target="_self"><tt>https://archive.ics.uci.edu/ml/index.php</tt></a> is an excellent site to
look up for examples and
inspiration. <a href="https://www.kaggle.com/" target="_self">Kaggle.com</a> is an equally
interesting site. Feel free to explore these sites. When selecting
other data sets, make sure these are sets used for regression problems
(not classification).
</p>
<p>
<!-- navigation buttons at the bottom of the page -->
<ul class="pagination">
<li class="active"><a href="._Project1-bs000.html">1</a></li>
<li><a href="._Project1-bs001.html">2</a></li>
<li><a href="._Project1-bs001.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
</div> <!-- end container -->
<!-- include javascript, jQuery *first* -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<!-- Bootstrap footer
<footer>
<a href="https://..."><img width="250" align=right src="https://..."></a>
</footer>
-->
</body>
</html>