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

preview_player
Показать описание
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

Code:

🍿 WATCH NEXT

OTHER SOCIALS:

Who is Ryan
Ryan is a Data Scientist at a fintech company, where he focuses on fraud prevention in underwriting and risk. Before that, he worked as a Data Analyst at a tax software company. He holds a degree in Electrical Engineering from UCF.

Who is Matt

*This is an affiliate program. We receive a small portion of the final sale at no extra cost to you.
Рекомендации по теме
Комментарии
Автор

Hey guys I hope you enjoyed the video! If you did please subscribe to the channel!


*Both Datacamp and Stratascratch are affiliate links.

RyanAndMattDataScience
Автор

Straight to the point and no BS, very great

icewater
Автор

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!

SamuelOgazi
Автор

Amazing! You explained the task concisely and clearly! Thank you very much!

Daniellagnaux
Автор

In this case, at 8:06, wouldn't 9 be false positive? I thought the first row is True Positive and False Positive.

adimihir
Автор

13 is the number of features right? so if I have 60 columns 0:60?

fatihahasus
Автор

Wonderful, this video saved me hours of reading documentation. Thank you very much 👍

LeandruFleidl
Автор

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?

telmagiovana
Автор

Great video. Thanks man, this video helped me with my Final assessment

bharatpatil
Автор

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?

SC-jdgw
Автор

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.

michaelangelomerza
Автор

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

henry-oi
Автор

Great video and explanation, didn't believe that you only have 8k subs...

aryan
Автор

Hey man, I'm quite new to machine learning and I would like to know what IDE are you using in this video?

montanaapproves
Автор

Nice one! Just as a way to improve the feature importance visualization, you could sort and plot like this:

features = pd.DataFrame(dtc.feature_importances_, index=X.columns, columns=['Importance'])
features_sorted =
features_sorted.plot(kind = 'barh', color = 'royalblue', figsize=(4, 3))
plt.show()

It works as well with pd.Series instead of DataFrame.

ra
Автор

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

Nothing-fcxo
Автор

"Steroid users have no chance of getting into the hall of fame"

lhg
Автор

Where the steroids are concerned, i don't think testosterone shows up on drug tests so cheating is probably widespread in sports? Aside from Strongman, Powerlifting and Mr Olympia where steroid abuse is rampant and not even tested for

lecturesfromleeds
Автор

good tutorial but you are explaining concepts shallowly men

glenkamai
visit shbcf.ru