Many times we get in a dilemma of which machine learning model should we use for a given problem. KFold cross validation allows us to evaluate performance of a model by creating K folds of given dataset. This is better then traditional train_test_split. In this tutorial we will cover basics of cross validation and kfold. We will also look into cross_val_score function of sklearn library which provides convenient way to run cross validation on a model
#MachineLearning #PythonMachineLearning #MachineLearningTutorial #Python #PythonTutorial #PythonTraining #MachineLearningCource #MachineLearningModel #sklearn #sklearntutorials #scikitlearntutorials
Code: [ Ссылка ]
Exercise: Exercise description is avialable in above notebook towards the end
Exercise solution: [ Ссылка ]
Topics that are covered in this Video:
0:00 Introduction
0:21 Cross Validation
1:02 Ways to train your model( use all available data for training and test on same dataset)
2:08 Ways to train your model( split available dataset into training and test sets)
3:26 Ways to train your model (k fold cross validation)
4:26 Coding (start) (Use hand written digits dataset for kfold cross validation)
8:23 sklearn.model_selection KFold
9:10 KFold.split method
12:21 StratifiedKFold
19:45 cross_val_score
Do you want to learn technology from me? Check [ Ссылка ] for my affordable video courses.
Next Video:
Machine Learning Tutorial Python - 13: K Means Clustering: [ Ссылка ]
Populor Playlist:
Data Science Full Course: [ Ссылка ]
Data Science Project: [ Ссылка ]
Machine learning tutorials: [ Ссылка ]
Pandas: [ Ссылка ]
matplotlib: [ Ссылка ]
Python: [ Ссылка ]
Jupyter Notebook: [ Ссылка ]
Tools and Libraries:
Scikit learn tutorials
Sklearn tutorials
Machine learning with scikit learn tutorials
Machine learning with sklearn tutorials
To download csv and code for all tutorials: go to [ Ссылка ], click on a green button to clone or download the entire repository and then go to relevant folder to get access to that specific file.
🌎 My Website For Video Courses: [ Ссылка ]
Need help building software or data analytics and AI solutions? My company [ Ссылка ] can help. Click on the Contact button on that website.
#️⃣ Social Media #️⃣
🔗 Discord: [ Ссылка ]
📸 Dhaval's Personal Instagram: [ Ссылка ]
📸 Codebasics Instagram: [ Ссылка ]
🔊 Facebook: [ Ссылка ]
📱 Twitter: [ Ссылка ]
📝 Linkedin (Personal): [ Ссылка ]
📝 Linkedin (Codebasics): [ Ссылка ]
🔗 Patreon: [ Ссылка ]
Machine Learning Tutorial Python 12 - K Fold Cross Validation
Теги
cross validation python tutorialcross validation machine learning pythoncross_val_score sklearnk fold cross validation in pythonk fold cross validation sklearnmachine learning cross validationcross validationk fold cross validationcross validation pythonk fold cross validation techniquek fold cross validation in machine learningcross validation in machine learningk-fold cross validationcross validation explainedk fold cross validation algorithm