Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Machine Learning Tutorial Python – 9 Decision Tree

661.3K views on YouTube

Want to map your data analysis process clearly? Try Wondershare EdrawMax :https://event.wondershare.com/api/s/3Mj

Decision tree algorithm is used to solve classification problem in machine learning domain. In this tutorial we will solve employee salary prediction problem using decision tree. First we will go over some theory and then do coding practice. In the end I’ve a very interesting exercise for you to solve.

#MachineLearning #PythonMachineLearning #MachineLearningTutorial #Python #PythonTutorial #PythonTraining #MachineLearningCource #DecisionTree #sklearntutorials #scikitlearntutorials

Code: https://github.com/codebasics/py/blob/master/ML/9_decision_tree/9_decision_tree.ipynb

csv file for exercise: https://github.com/codebasics/py/blob/master/ML/9_decision_tree/Exercise/titanic.csv

Exercise solution: https://github.com/codebasics/py/blob/master/ML/9_decision_tree/Exercise/9_decision_tree_exercise.ipynb

Topics that are covered in this Video:
0:00 – How to solve classification problem using decision tree algorithm?
0:26 – Theory (Explain rationale behind decision tree using a use case of predicting salary based on department, degree and company that a person is working for)
2:10 – How do you select ordering of features? High vs low information gain and entropy
3:52 – Gini impurity
4:28 – Coding (start)
9:11 – Create sklearn model using DecisionTreeClassifier
13:32 – Exercise (Find out survival rate of titanic ship passengers using decision tree)

Do you want to learn technology from me? Check https://resources.codebasics.io/6K8Kp0 for my affordable video courses.

Next Video:
Machine Learning Tutorial Python – 10 Support Vector Machine (SVM): https://www.youtube.com/watch?v=FB5EdxAGxQg&list=PLeo1K3hjS3uvCeTYTeyfe0-rN5r8zn9rw&index=11

Populor Playlist:
Data Science Full Course: https://www.youtube.com/playlist?list=PLeo1K3hjS3us_ELKYSj_Fth2tIEkdKXvV

Data Science Project: https://www.youtube.com/watch?v=rdfbcdP75KI&list=PLeo1K3hjS3uu7clOTtwsp94PcHbzqpAdg

Machine learning tutorials: https://www.youtube.com/watch?v=gmvvaobm7eQ&list=PLeo1K3hjS3uvCeTYTeyfe0-rN5r8zn9rw

Pandas: https://www.youtube.com/watch?v=CmorAWRsCAw&list=PLeo1K3hjS3uuASpe-1LjfG5f14Bnozjwy

matplotlib: https://www.youtube.com/watch?v=qqwf4Vuj8oM&list=PLeo1K3hjS3uu4Lr8_kro2AqaO6CFYgKOl

Python: https://www.youtube.com/watch?v=eykoKxsYtow&list=PLeo1K3hjS3uv5U-Lmlnucd7gqF-3ehIh0&index=1

Jupyter Notebook: https://www.youtube.com/watch?v=q_BzsPxwLOE&list=PLeo1K3hjS3uuZPwzACannnFSn9qHn8to8

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 https://github.com/codebasics/py, 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: https://resources.codebasics.io/6K8Kp0

Need help building software or data analytics and AI solutions? My company https://www.atliq.com/ can help. Click on the Contact button on that website.

#️⃣ Social Media #️⃣
🔗 Discord: https://discord.gg/r42Kbuk
📸 Codebasics Instagram: https://www.instagram.com/codebasicshub/
🔊 Codebasics Facebook: https://www.facebook.com/codebasicshub
📝 Codebasics LinkedIn: https://www.linkedin.com/company/codebasics/
📱 Codebasics X handle: https://twitter.com/codebasicshub
📸 Dhaval’s Instagram: https://www.instagram.com/dhavalsays/
📝 Dhaval’s LinkedIn: https://www.linkedin.com/in/dhavalsays/
📱 Dhaval’s X handle: https://x.com/dpcodebasics
🔗 Patreon: https://www.patreon.com/codebasics?fan_landing=true