Day22: Splitting data, calculating metrics, cross-validations

#artificialintelligence 

Today I want to showcase "better" and more tidy ways of using Python. The Jupyter Notebook for this little project is found here. Originally, I would slice the data by the index. The problem is that the slicing is not random. Scikit-learn has a function train_test_split() to randomly split the data into test and training sets.