Linear regression with machine learning involves testing the linear regression algorithm on unseen data. Here, we will perform 10-fold cross-validation:
- Split the set into 10 parts
- Train on 9 of the parts and test on the one left over
- Repeat this 10 times so that every part gets to be a test set once