lgatto / IntroMachineLearningWithR

An Introduction to Machine Learning with R
http://bit.ly/intromlr
75 stars 37 forks source link

Supervised machine learning #1

Open lgatto opened 6 years ago

lgatto commented 6 years ago
FSuessenbach commented 4 years ago

Thanks for this great course! I spotted a minor error you might want to fix. In the SLM Cross-validation section (5.3.2) you forgot some brackets in the calculation of the RMSE for the Boston data set challenge.

Your code reads: sqrt(mean(p - Boston$medv)^2) #6 6.647482e-14

However it should be: sqrt(mean(((p - Boston$medv)^2))) #4.679191

lgatto commented 4 years ago

Indeed, thanks!