7: Training and Testing Data

August 9, 2018 comments 91 Reads

Code: https://github.com/codebasics/py/blob/master/ML/6_train_test_split/train_test_split.ipynb
sklearn.model_selection.train_test_split method is used in machine learning projects to split available dataset into training and test set. This way you can train and test on seperate datasets. When you test your model using dataset that model didn’t see during training phase, it will give you better idea on the accuracy of a model.
Website: http://codebasicshub.com/
Facebook: https://www.facebook.com/codebasicshub
Twitter: https://twitter.com/codebasicshub
Google +: https://plus.google.com/106698781833798756600