How to Build Your First Decision Tree in Python (scikit-learn)

  Рет қаралды 10,961

Ryan Nolan Data

Ryan Nolan Data

11 ай бұрын

Are you intrigued by the power of decision-making in machine learning?
By the end of this tutorial, you'll have a solid grasp of Decision Trees, be capable of implementing them in Python, and understand their role in various machine learning projects.
What you'll discover:
The fundamentals of Decision Trees: How they make decisions and create splits
Hands-on coding: Building Decision Trees in Python using popular libraries
Pruning and preventing overfitting: Strategies for optimizing Decision Tree performance
Interested in discussing a Data or AI project? Feel free to reach out via email or simply complete the contact form on my website.
📧 Email: ryannolandata@gmail.com
🌐 Website & Blog: ryannolandata.com/
🍿 WATCH NEXT
Scikit-Learn and Machine Learning Playlist: • Scikit-Learn Tutorials...
KNN Classification: • How to Build Your Firs...
Logistic Regression: • Hands-On Machine Learn...
Support Vector Machine: • Mastering Support Vect...
MY OTHER SOCIALS:
👨‍💻 LinkedIn: / ryan-p-nolan
🐦 Twitter: / ryannolan_
⚙️ GitHub: github.com/RyanNolanData
🖥️ Discord: / discord
📚 *Practice SQL & Python Interview Questions: stratascratch.com/?via=ryan
WHO AM I?
As a full-time data analyst/scientist at a fintech company specializing in combating fraud within underwriting and risk, I've transitioned from my background in Electrical Engineering to pursue my true passion: data. In this dynamic field, I've discovered a profound interest in leveraging data analytics to address complex challenges in the financial sector.
This KZbin channel serves as both a platform for sharing knowledge and a personal journey of continuous learning. With a commitment to growth, I aim to expand my skill set by publishing 2 to 3 new videos each week, delving into various aspects of data analytics/science and Artificial Intelligence. Join me on this exciting journey as we explore the endless possibilities of data together.
*This is an affiliate program. I may receive a small portion of the final sale at no extra cost to you.

Пікірлер: 26
@Daniellagnaux
@Daniellagnaux 2 ай бұрын
Amazing! You explained the task concisely and clearly! Thank you very much!
@RyanNolanData
@RyanNolanData Ай бұрын
Glad it was helpful!
@SamuelOgazi
@SamuelOgazi 4 ай бұрын
This was so helpful and straight to the point. Tbh, I got the logic from other channels but the implementation here was a breeze. I am dragging my friends here. God bless!
@RyanNolanData
@RyanNolanData 4 ай бұрын
Thanks
@telmagiovana6006
@telmagiovana6006 2 ай бұрын
Thanks for the video! I have a question, in this part that we're talking about the importance of each feature(11:47), is it calculated by the gini?
@SC-jd4gw
@SC-jd4gw 2 ай бұрын
Thanks so much for your video but i have a question, I follow everything you did but when i do the print(classification_report(y_test, y_pred)) i have 7 rows, not only two. Why did this happen?
@oleblack
@oleblack 4 ай бұрын
Great video. Thanks man , this video helped me with my Final assessment
@RyanNolanData
@RyanNolanData 4 ай бұрын
No problem
@fatihahasus1069
@fatihahasus1069 25 күн бұрын
13 is the number of features right? so if I have 60 columns 0:60?
@aryan8020
@aryan8020 Ай бұрын
Great video and explanation, didn't believe that you only have 8k subs...
@RyanNolanData
@RyanNolanData Ай бұрын
I’ve only had the channel for a year. I wish I had more though!
@andrewhuang1452
@andrewhuang1452 Ай бұрын
Where is the link of the csv
@user-iu5nz2gy6l
@user-iu5nz2gy6l 4 ай бұрын
Thanks, Ryan. You are the best. Quick question- does it matter if i use the standard scaler for the data. If so, do i perform it before train test split or after? Also, i think it may be best if you put this in front of the Random Forest on your playlist. Thanks again
@RyanNolanData
@RyanNolanData 4 ай бұрын
I'll move this infront of it now, thanks. I've been working on revamping the playlists and desxcriptions this week. Preprocess your data before you split btw
@michaelangelomerza3966
@michaelangelomerza3966 8 ай бұрын
Hi. I'm still learning python and may I ask. How will you add another data on that? For example I want to predict a new player if he will be among the HOF. My input will be only one. Shall I import a new CSV file containing that data then put it on X_test, and y_test? Thank you.
@RyanNolanData
@RyanNolanData 8 ай бұрын
Once you have a model built you can predict on it with inputs.
@michaelangelomerza3966
@michaelangelomerza3966 8 ай бұрын
Is it possible to output multiple results for one input? Im currently trying to build a College Course Recommender and the Inputs are based on the student grades, strand, hobbies/likes then output multiple possible courses that fits the inputs? @@RyanNolanData
@montanaapproves1044
@montanaapproves1044 3 ай бұрын
Hey man, I'm quite new to machine learning and I would like to know what IDE are you using in this video?
@RyanNolanData
@RyanNolanData 3 ай бұрын
Google collab
@montanaapproves1044
@montanaapproves1044 3 ай бұрын
Thanks!@@RyanNolanData
@srivardhan1042
@srivardhan1042 3 ай бұрын
@@RyanNolanData it looks like Jupyter.
@RyanNolanData
@RyanNolanData 3 ай бұрын
@@srivardhan1042ah probably is, it’s an older vid. I use collab now
@abdullah.montasheri
@abdullah.montasheri 8 ай бұрын
can you share the notebook file?
@RyanNolanData
@RyanNolanData 8 ай бұрын
I plan on doing a bulk upload to GitHub in the future for all the videos
@Nothing-fc3xo
@Nothing-fc3xo 2 ай бұрын
what the heck is this??😢 I’m literally taking my first AI course and my prof demanded such project like this . she didn’t even explained or taught us Python first
@RyanNolanData
@RyanNolanData 2 ай бұрын
Have a lot of Python vids and working on a beginner series so hopefully it helps
Random Forest Algorithm Explained with Python and scikit-learn
11:49
Ryan Nolan Data
Рет қаралды 3,6 М.
How to implement Decision Trees from scratch with Python
37:24
AssemblyAI
Рет қаралды 60 М.
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 8 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 159 МЛН
One Hot Encoding in Python | Machine Learning | OneHotEncoder scikit-learn
12:51
Decision Tree Classification in Python (from scratch!)
17:43
Normalized Nerd
Рет қаралды 183 М.
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Рет қаралды 244 М.
Random Forest Regressor in Python: A Step-by-Step Guide
15:21
Ryan Nolan Data
Рет қаралды 6 М.
All Learning Algorithms Explained in 14 Minutes
14:10
CinemaGuess
Рет қаралды 199 М.
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 1,4 МЛН
Cheapest gaming phone? 🤭 #miniphone #smartphone #iphone #fy
0:19
Pockify™
Рет қаралды 4,2 МЛН
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 60 М.
Samsung Galaxy 🔥 #shorts  #trending #youtubeshorts  #shortvideo ujjawal4u
0:10
Ujjawal4u. 120k Views . 4 hours ago
Рет қаралды 8 МЛН