Coding a Decision Tree from Scratch in Python p.1: Introduction

  Рет қаралды 71,952

Sebastian Mantey

Sebastian Mantey

Күн бұрын

Пікірлер: 63
@SebastianMantey
@SebastianMantey 5 жыл бұрын
Since there were some questions, the algorithm built in this series is basically the ID3 algorithm. However, instead of using Information Gain I use “Overall Entropy”. To see what the difference is, check out my pinned comment for this video: kzbin.info/www/bejne/hZOvgpamqrF0oqs In case you are interested, I also have a series about coding a random forest from scratch. Here is the link: kzbin.info/www/bejne/jafQgaF9oqiUf68
@TrueTalenta
@TrueTalenta 6 жыл бұрын
No one compares to you! You are a GURU! No nonsense. Just the business of teaching and to the point. You outshine my PHD professor!
@SebastianMantey
@SebastianMantey 6 жыл бұрын
Woah, easy easy! I just did a little series on coding a decision tree from scratch. Nonetheless, I appreciate your feedback!
@nehathakur8221
@nehathakur8221 4 жыл бұрын
been searching for this from days .Best Playlist on Decision tree i have found .thank u sir :)
@SebastianMantey
@SebastianMantey 4 жыл бұрын
Thanks! Glad it was helpful.
@anandachetanelikapati6388
@anandachetanelikapati6388 6 жыл бұрын
Hats off to you for a clean explanation! My search for clarity on this ends with your Playlist.
@user-jr1fx3vw2n
@user-jr1fx3vw2n 4 жыл бұрын
Thank you so much for such a clear demonstration with so many useful details!
@SebastianMantey
@SebastianMantey 4 жыл бұрын
You are welcome!
@MrAnandml
@MrAnandml 4 жыл бұрын
This channel really deserve more subs ... Such a great content ...explained in an elegant manner ...you really got some teaching skills too buddy..
@SebastianMantey
@SebastianMantey 4 жыл бұрын
Thanks, I appreciate it!
@minhtriet6873
@minhtriet6873 3 жыл бұрын
Thank you so much, Mantey. You saved my day. All those knowledge i learned from you more than i studied uni, wish all the best for you and your channel will worldwide!!!
@SebastianMantey
@SebastianMantey 3 жыл бұрын
Happy to hear that!
@ankurrohilla4655
@ankurrohilla4655 4 жыл бұрын
just in 5 min i fall in love with ur videos.........thnku very much sir!!!!!!!!!!!!!!!!!
@adriantang3606
@adriantang3606 4 жыл бұрын
Dude, your videos have taught me way more than what I learn at uni. Keep up good the work, my guy!
@SebastianMantey
@SebastianMantey 4 жыл бұрын
Thanks, will do!
@FloraInn
@FloraInn 9 ай бұрын
Thank you so much for this excellent series! This helps me a lot.
@halilyaman4498
@halilyaman4498 5 жыл бұрын
Thanks a lot sir ! Your video is my first step to build a complete humanoid robot.
@coolcolumbus
@coolcolumbus 6 жыл бұрын
Hi, Sebastian. we like your no nonsense to the point presentation. Keep it up.
@SebastianMantey
@SebastianMantey 6 жыл бұрын
Hi, Neelakanta! Thanks for your nice comments. May I ask you for a favor? I just commented on Siraj’s Q&A video (kzbin.info/www/bejne/kKDOYYeGipV_aq8). Could you maybe like that comment to increase its visibility? The reason I ask is because the last time I had a highly visible comment on one of Siraj’s videos, the video I linked to gained about 600 views. So, your like could potentially be very helpful to me.
@coolcolumbus
@coolcolumbus 6 жыл бұрын
Yes, sure. Also, try creating a blog page with links to your videos, and share the blog in Facebook etc for more viewers. Good luck.
@winsonwijaya5592
@winsonwijaya5592 4 жыл бұрын
new sub! thank you so much for making this content, sir
@SebastianMantey
@SebastianMantey 4 жыл бұрын
My pleasure!
@misoandramen
@misoandramen 6 жыл бұрын
This is an excellent series, thank you!
@haiderkamal1106
@haiderkamal1106 6 жыл бұрын
BEST TUTORIAL VIDEO SERIES FOR DT !!!! Thank you so much #sebastian Your voice is so soothing...
@ununbrian
@ununbrian 3 жыл бұрын
good video, full support
@simontimothy6033
@simontimothy6033 4 жыл бұрын
thank you so much! very clear and informative explanation
@SebastianMantey
@SebastianMantey 4 жыл бұрын
Glad it was helpful!
@hazemahmed8333
@hazemahmed8333 4 жыл бұрын
thank you so much this is pure gold !!
@petrhanzl8399
@petrhanzl8399 4 жыл бұрын
man you just saved my semestr. Thank you :D
@SebastianMantey
@SebastianMantey 4 жыл бұрын
No problem! By the way, you are not the first one to make such a comment. What’s the assignment that you have to do at college/university?
@petrhanzl8399
@petrhanzl8399 4 жыл бұрын
​@@SebastianMantey Its data processing in python, I chose this data set: www.kaggle.com/sulianova/cardiovascular-disease-dataset/data?fbclid=IwAR2GBHEGq06xmVuYBHwXIDLj7LMWQ6ObXf_bSMl3iSGVeeK3UcZwUe4hc-A My teacher told me to do a decision tree, then agregation. It took me a while to understand the idea of DT. But thanks to you, I can make it.
@sourabh6496
@sourabh6496 5 жыл бұрын
Thank you sir you are doing great work🙏
@viralina8765
@viralina8765 4 жыл бұрын
you explained it very well. TQ sir :)
@mustajabhussain9167
@mustajabhussain9167 6 жыл бұрын
Thanks for making such an awesome video. Just wanted to ask are you applying the ID3 algorithm in making the decision tree?
@SebastianMantey
@SebastianMantey 6 жыл бұрын
Thanks! I didn’t specifically wrote the code based on the ID3 algorithm. But I think the diagram, that I based the code on (0:19), is basically the same.
@nuruddin5136
@nuruddin5136 6 жыл бұрын
@@SebastianMantey actually I didn't get your answer. can you please tell specifically that did you use ID3 ? or you used other algorithms like CART or other. thanks.
@SebastianMantey
@SebastianMantey 6 жыл бұрын
Hi, Nur! Sorry, for the late reply, but somehow I overlooked your comment in the KZbin studio app. Like I said in the previous comment, I didn’t specifically look at the ID3 or CART algorithms and then tried to implement them in code. What I did was (as far as I can remember): I had a high-level understanding of how decision trees basically work. Then, I tried to explain the algorithm in simple terms and in my own words in these two videos: kzbin.info/www/bejne/jZ2qppywmbuUn7s kzbin.info/www/bejne/hZOvgpamqrF0oqs And then, finally, from the diagram that you can see at 0:19 in this video, I created the code from scratch by myself just using this particular diagram and no other references. I hope this answer makes it more clear.
@nuruddin5136
@nuruddin5136 6 жыл бұрын
@@SebastianMantey Thanks for your clarification, and it was a nice video to understand.
@minhletruong2915
@minhletruong2915 6 жыл бұрын
Thanks God I found out you. Thanks so much guy !!!
@ravindrasah1150
@ravindrasah1150 5 жыл бұрын
great video, i loved it
@tram3634
@tram3634 5 жыл бұрын
Why is it random.seed(0) does not function in googlecolab? I'm getting same indices with or without random.seed(0).
@SebastianMantey
@SebastianMantey 5 жыл бұрын
That’s strange! When I run the line “random.sample(population=range(100), k=3)” in google colab, then I get different numbers whenever I run the cell. If I put a random seed before that (in the same cell), then I always get the same numbers.
@exoticme4760
@exoticme4760 4 жыл бұрын
THank you so much guy!!
@SebastianMantey
@SebastianMantey 4 жыл бұрын
You're welcome!
@maximk7816
@maximk7816 4 жыл бұрын
Hi! Is there a way do download actual files from Github? I tried to use your link and found the data, but I couldn't download them. So I just made the same file myself using the data. And another question: How you can refer to files directly in Jupiter without path? UPDATE: now I know how to handle files in Jupyter) I'd still like to know how to download files from Github. Anyway, thanks for tutorial! It was great. It was easy to follow along and understandable!
@SebastianMantey
@SebastianMantey 4 жыл бұрын
Thanks! Here is how to download the files from GitHub: If you click the link to the GitHub repo, then you will see a green button that says “Code”. If you click on that, a pop-up window opens. And there, you can click “Download ZIP” to download the files.
@tushargoel3521
@tushargoel3521 Жыл бұрын
can you also provide us this sample data for decision tree
@crizon222
@crizon222 4 жыл бұрын
I'm entering this playlist to apply the cart algorithm for regression, am I in the right direction?
@SebastianMantey
@SebastianMantey 4 жыл бұрын
Later on in the series, I am also covering how to use decision trees for regression: kzbin.info/www/bejne/gaXLpqh-h9Zlmqc
@arvindpc5741
@arvindpc5741 5 жыл бұрын
Nice tutorial. Can you please let me know is this C4.5 or CART ?
@SebastianMantey
@SebastianMantey 5 жыл бұрын
Actually, I don’t know. What I mean by that is: I don‘t know what the specifics of these algorithms are and how they compare to my algorithm. If you are interested in how I implemented the decision tree, please have a look at the comment of Mustajab Hussain (in the comment section of this video). He asked the same question.
@merepapa350
@merepapa350 6 жыл бұрын
Love ur video
@brahmlife
@brahmlife 6 жыл бұрын
can you have sub features of the features or attributes in the decision tree algorithm?
@SebastianMantey
@SebastianMantey 6 жыл бұрын
I'm not really sure what you mean by that. Could you elaborate on that?
@nrted3877
@nrted3877 3 ай бұрын
you look like brad pitt, awseome video
@ghzich017
@ghzich017 2 жыл бұрын
Dataset?
@prakashdas8518
@prakashdas8518 5 жыл бұрын
Do you have scratch videos on Deep learning
@SebastianMantey
@SebastianMantey 5 жыл бұрын
Yes! Here is the video with just the code: kzbin.info/www/bejne/hpTJdHiqaqyXgrs And if you want to know all the detailed, theoretical background, you can also watch the whole playlist: kzbin.info/www/bejne/apPZe4V7arBoppY
@marcelohuerta2727
@marcelohuerta2727 Жыл бұрын
is this id3 algorithm?
@SebastianMantey
@SebastianMantey Жыл бұрын
Please have a look at the comment from mustajabhussain9167 for the answer.
@IvarHilferink
@IvarHilferink Жыл бұрын
switch to dark mode powerpoints.
Coding a Decision Tree from Scratch in Python p.2: Helper Functions
14:27
How to Build Your First Decision Tree in Python (scikit-learn)
15:13
Ryan & Matt Data Science
Рет қаралды 23 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
How to implement Decision Trees from scratch with Python
37:24
AssemblyAI
Рет қаралды 76 М.
Machine Learning Tutorial Python - 9  Decision Tree
14:46
codebasics
Рет қаралды 558 М.
Decision Tree Classification in Python (from scratch!)
17:43
Normalized Nerd
Рет қаралды 210 М.
10 Tips to Become REALLY Good at Python
27:39
ArjanCodes
Рет қаралды 27 М.
Decision Tree Regression Clearly Explained!
9:17
Normalized Nerd
Рет қаралды 160 М.
I am not sorry for switching to C
11:34
Sheafification of G
Рет қаралды 183 М.
Create a Simple Neural Network in Python from Scratch
14:15
Polycode
Рет қаралды 780 М.
My top 50 scikit-learn tips
2:47:31
Data School
Рет қаралды 13 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН