Machine Learning Tutorial Python - 7: Training and Testing Data - codebasics - 機器學習 Machine Learning 公開課 - Cupoy
Data Science Full Course For Beginners | Python Data Science Tutorial | Data Science With Python
sk...
Data Science Full Course For Beginners | Python Data Science Tutorial | Data Science With Python
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 separate 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.
#MachineLearning #PythonMachineLearning #MachineLearningTutorial #Python #PythonTutorial #PythonTraining #MachineLearningCource #MachineLearningMethod #DataTraining #sklearntutorials #scikitlearntutorials
Code: https://github.com/codebasics/py/blob...
Topics that are covered in this Video:
0:00 - Theory behind why we need to split given dataset into training and test using sklearn train set split method.
0:54 - Coding (Here we use car price prediction problem to demonstrate train test split)
2:14 - Use train_test_split from sklearn
3:54 - Use of random state method
4:49 - Use of fit() method to train your model
5:35 - Score() method (to check the accuracy of the model)
Do you want to learn technology from me? Check https://codebasics.io/?utm_source=des... for my affordable video courses.