From 7cceb6f7bd4641f5d335fa938917b1e8d04971e1 Mon Sep 17 00:00:00 2001 From: Morten Hjorth-Jensen Date: Mon, 21 Aug 2023 10:26:16 +0200 Subject: [PATCH] correcting typos --- doc/pub/week34/html/._week34-bs065.html | 5 +- doc/pub/week34/html/week34-reveal.html | 5 +- doc/pub/week34/html/week34-solarized.html | 5 +- doc/pub/week34/html/week34.html | 5 +- doc/pub/week34/ipynb/ipynb-week34-src.tar.gz | Bin 103516 -> 103516 bytes doc/pub/week34/ipynb/week34.ipynb | 607 ++++++++++--------- doc/src/week34/week34.do.txt | 5 +- 7 files changed, 319 insertions(+), 313 deletions(-) diff --git a/doc/pub/week34/html/._week34-bs065.html b/doc/pub/week34/html/._week34-bs065.html index 9bc961245..0395109d7 100644 --- a/doc/pub/week34/html/._week34-bs065.html +++ b/doc/pub/week34/html/._week34-bs065.html @@ -503,7 +503,7 @@ that is the degree of a given polynomial.

The aim is to reproduce Figure 2.11 of Hastie et al.

-

Our data is defined by \( x\in [-3,3] \) with a total of for example \( 100 \) data points. You should try to vary \( n \) in your analysis.

+

Our data is defined by \( x\in [-3,3] \) with a total of for example \( n=100 \) data points. You should try to vary the number of data points \( n \) in your analysis.

@@ -544,7 +544,8 @@ Write a first code which sets up a design matrix \( X \) defined by a fifth-orde

b) -Perform an ordinary least squares fitting and compute the means squared error for the training data and the test data. +Write thereafter (using either scikit-learn or your matrix inversion code using for example numpy) +and perform an ordinary least squares fitting and compute the mean squared error for the training data and the test data. These calculations should apply to a model given by a fifth-order polynomial.

diff --git a/doc/pub/week34/html/week34-reveal.html b/doc/pub/week34/html/week34-reveal.html index 432de430e..f6a08fdc4 100644 --- a/doc/pub/week34/html/week34-reveal.html +++ b/doc/pub/week34/html/week34-reveal.html @@ -3966,7 +3966,7 @@ that is the degree of a given polynomial.

The aim is to reproduce Figure 2.11 of Hastie et al.

-

Our data is defined by \( x\in [-3,3] \) with a total of for example \( 100 \) data points. You should try to vary \( n \) in your analysis.

+

Our data is defined by \( x\in [-3,3] \) with a total of for example \( n=100 \) data points. You should try to vary the number of data points \( n \) in your analysis.

@@ -4007,7 +4007,8 @@ Write a first code which sets up a design matrix \( X \) defined by a fifth-orde

b) -Perform an ordinary least squares fitting and compute the means squared error for the training data and the test data. +Write thereafter (using either scikit-learn or your matrix inversion code using for example numpy) +and perform an ordinary least squares fitting and compute the mean squared error for the training data and the test data. These calculations should apply to a model given by a fifth-order polynomial.

diff --git a/doc/pub/week34/html/week34-solarized.html b/doc/pub/week34/html/week34-solarized.html index 3065c7ff9..55c7c83d6 100644 --- a/doc/pub/week34/html/week34-solarized.html +++ b/doc/pub/week34/html/week34-solarized.html @@ -3831,7 +3831,7 @@ that is the degree of a given polynomial.

The aim is to reproduce Figure 2.11 of Hastie et al.

-

Our data is defined by \( x\in [-3,3] \) with a total of for example \( 100 \) data points. You should try to vary \( n \) in your analysis.

+

Our data is defined by \( x\in [-3,3] \) with a total of for example \( n=100 \) data points. You should try to vary the number of data points \( n \) in your analysis.

@@ -3872,7 +3872,8 @@ Write a first code which sets up a design matrix \( X \) defined by a fifth-orde

b) -Perform an ordinary least squares fitting and compute the means squared error for the training data and the test data. +Write thereafter (using either scikit-learn or your matrix inversion code using for example numpy) +and perform an ordinary least squares fitting and compute the mean squared error for the training data and the test data. These calculations should apply to a model given by a fifth-order polynomial.

diff --git a/doc/pub/week34/html/week34.html b/doc/pub/week34/html/week34.html index 732fa7742..f343b6147 100644 --- a/doc/pub/week34/html/week34.html +++ b/doc/pub/week34/html/week34.html @@ -3908,7 +3908,7 @@ that is the degree of a given polynomial.

The aim is to reproduce Figure 2.11 of Hastie et al.

-

Our data is defined by \( x\in [-3,3] \) with a total of for example \( 100 \) data points. You should try to vary \( n \) in your analysis.

+

Our data is defined by \( x\in [-3,3] \) with a total of for example \( n=100 \) data points. You should try to vary the number of data points \( n \) in your analysis.

@@ -3949,7 +3949,8 @@ Write a first code which sets up a design matrix \( X \) defined by a fifth-orde

b) -Perform an ordinary least squares fitting and compute the means squared error for the training data and the test data. +Write thereafter (using either scikit-learn or your matrix inversion code using for example numpy) +and perform an ordinary least squares fitting and compute the mean squared error for the training data and the test data. These calculations should apply to a model given by a fifth-order polynomial.

diff --git a/doc/pub/week34/ipynb/ipynb-week34-src.tar.gz b/doc/pub/week34/ipynb/ipynb-week34-src.tar.gz index e49ae1048bb709ec4936389166e29fed72a72d4e..d4fa5e8dddc54cad30c8da29479181169f857740 100644 GIT binary patch delta 20 ccmcb!g6+-