Error in the R code for Chapter 7

Note that there was an error in the R code for Chapter 7, in the file r-code-week6.r where the training error error.train.all was computed on line 150 in the code. It should have been computed as the mean of the squared residuals and not the sum. This is now corrected in the available file. Since you were supposed to use that code as a source of inspiration in the first mandatory assignment, many of you have probably copied this error. I appologise for this! This will of course not affect whether you pass the assignment or not. 

Publisert 13. mars 2025 10:53 - Sist endret 13. mars 2025 10:53