Why can't all professors explain things like this? My professor: "Here is the idea for decision tree, now code it"
@exoticme47604 жыл бұрын
agreed!
@pauls60r4 жыл бұрын
I realized years after graduation, many professors either have received no training in teaching or have little interest in teaching, undergrads in particular. I can't say I've learned more on KZbin than I did in college but I have a whole lot of "OOOOOH, that's what my professor was talking about!" moments when watching videos like this. This stuff would've altered my life 20 years ago.
@carol80994 жыл бұрын
Same! I really wish they could dig more into the coding part, but they either don't cover it or don't teach coding well.
@avijitmandal91244 жыл бұрын
hey can someone give the link for doing pruning
@Skyfox944 жыл бұрын
Whilst I definitely agree, I have to say that, in order to understand algorithms like this one, you'll have to just work through them. No matter how many interesting and well thought out videos you watch, it'll always be most effective if you afterwards try and build it yourself. The fact that you're watching this in your free time shows that you are interested in the topic. That's also worth a lot. Sometimes you'll only be able to appreciate what professors taught you, after you get out of college/uni and realize how useful it would have been.
@nbamj887 жыл бұрын
In nearly 10 min, he explained the topic extremely well Amazing job.
@learnsharegrowwithgh21814 жыл бұрын
right
@bluefiendish11 ай бұрын
Because he knows how to write an explanation tree
@FacadeMan7 жыл бұрын
Thanks a lot, Josh. To a very basic beginner, every sentence you say is a gem. It took me half hour to get the full meaning of the first 4 mins of the video, as I was taking notes and repeating it to myself to grasp everything that was being said. The reason I wanted to showcase my slow pace is to say how important and understandable I felt in regard to every sentence. And, it wasn't boring at all. Great job, and please, keep em coming.
@Leon-pn6rb5 жыл бұрын
I'm curious, how did your career pan out? Still in ml?
@learnsharegrowwithgh21814 жыл бұрын
you are right he is
@donking69964 жыл бұрын
I am crying tears of joy! How can you articulate such complex topics so clearly!
@riadhsaid35486 жыл бұрын
Even it took me more than 30 minutes to complete & understand the video. I can not tell you how this explanation is amazing ! This is how we calculate the impurity ! PS: G(k) = Σ P(i) * (1 - P(i)) i = (Apple, Grape,Lemon) 2/5 * (1- 2/5) + 2/5 * (1- 2/5) + 1/5 *(1-1/5)= 0.4 * (0.6) + 0.4 * (0.6) + 0.2 * (0.8)= 0.24 + 0.24 + 0.16 = 0.64
@ksenyaisavnina4 жыл бұрын
or 1 - (2/5)^2 - (2/5)^2 - (1/5)^2
@vardhanshah88434 жыл бұрын
Thank you very much for this explanation I went to the comment section to ask this question but you answer it very nicely.
@cbrtdgh42106 жыл бұрын
This is the best single resource on decision trees that I've found, and it's a topic that isn't covered enough considering that random forests are a very powerful and easy tool to implement. If only they released more tutorials!
@georgevjose7 жыл бұрын
Finally after a year. Pls continue this course.
@sundayagu57554 жыл бұрын
As a beginner, this work has given me hope to pursue a career in ML. I have red and understood the concepts of Decision Tree. But the code becomes a mountain which has been levelled. Jose, thank you my brother and may God continue to increase you 🙏.
@hbunyamin5 жыл бұрын
I have already known the concept; however, when I have to translate the concept into code ... I find it quite difficut and this video explains that smoothly. Thank you so much for the explanation!
@techteens6944 жыл бұрын
The same case here man
@learnsharegrowwithgh21814 жыл бұрын
humm he is great teacher
@gautambakliwal8267 жыл бұрын
You have saved weeks amount of work. So short yet so deep. Guys first try to understand the code then watch the video.
@hyperealisticglass6 жыл бұрын
This single 9-minute video does a way better job than what my ML teacher did for 3 hours.
@marklybeer90383 жыл бұрын
I know, right? I had the same experience with an instructor. . . it was a horrible memory. Thanks for the video!
@shreyanshvalentino7 жыл бұрын
a year later, finally!
@WilloftheWinds7 жыл бұрын
Welcome back Josh, thought we would never get another awesome tutorial, thanks for your good work.
@AyushGupta-kp9xf4 жыл бұрын
So much value in just 10 mins, this is Gold
@JulitaOtusek6 жыл бұрын
I think you might confusing Information Gain and Gini Index. Information gain is reduce of entropy, not reduce of gini impurity. I almost did a mistake in my Engineering paper because of this video. But I luckily noticed different definition of information gain in a different source. Maybe it's just thing of naming but it can mislead people who are new in this subject :/
@liuqinzhe5083 жыл бұрын
Yes. Information gain and Gini index are not really related to each other when we generate a decision tree. They are two different approaches. But overall still a wonderful video.
@leonelp95932 жыл бұрын
thanks for clarify this!
@BestPromptHub7 жыл бұрын
You have no idea how your videos helped me out on my journey on Machine Learning. thanks a lot Josh you are awesome. 回复
@leoyuanluo4 жыл бұрын
best video about decision tree thus far
@teosurch2 ай бұрын
Incredibly clear explanation. Thank you!
@TomHarrisonJr5 жыл бұрын
One of the clearest and most accessible presentations I have seen. Well done! (and thanks!)
@mindset8734 жыл бұрын
I've never seen any other channels like this. So deep and perfect.
@aryamanful6 жыл бұрын
I don't generally comment on videos but this video has so much clarity something had to be said
@Po-YuJuan-g9k2 жыл бұрын
Sooo dooope !!!! Helpful 🔥🔥🔥
@rohitgavirni34004 жыл бұрын
The script is tightly edited. Much appreciated.
@falmanna7 жыл бұрын
Please keeps this series going. It's awesome!
@alirezagh145610 ай бұрын
One of the best course i ever seed
@ryanp94412 жыл бұрын
so INSTRUCTIVE. thank you so much for your clear & precise explanation
@tymothylim65503 жыл бұрын
Thank you very much for this video! I learnt a lot on how to understand Gini Coefficient and how it is used to pick the best questions to split the data!
@BlueyMcPhluey7 жыл бұрын
loving this series, glad it's back
@dunstantough51342 жыл бұрын
This video has saved my life 😆
@anupam17 жыл бұрын
Thanks, was really looking for this series...nice to see you back
@BreakPhreak7 жыл бұрын
Started to watch the series 2 days ago, you are explaining SO well. Many thanks! More videos on additional types of problems we can solve with Machine Learning would be very helpful. Few ideas: traveling salesman problem, generating photos while emulating analog artefacts or simple ranking of new dishes I would like to try based on my restaurants' order history. Even answering with the relevant links/terminology would be fantastic. Also, would be great to know what problems are still hard to solve or should not be solved via Machine Learning :)
Thank you Josh! This is my first encounter with machine learning and you made it very interesting.
@andrewbeatty59127 жыл бұрын
Brilliant explanation !
@dcarter6666 жыл бұрын
Ty
@senyotsedze3388 Жыл бұрын
you are awesome, man! but why is it that, the second question on if the color is yellow? you separated only apple when two grapes are red. Or is it because they are already taken care of at the first false split of the node?
@dinasamir27784 жыл бұрын
It is great course. I hope you continue and make videos to all machine learning algorithms. Thanks Alot.
@mingzhu80936 жыл бұрын
Question about calculating impurity. If we do probability, we first draw data which give us probability of 0.2 then we draw label which give us another 0.2. Shouldn't the impurity be 1 - 0.2*0.2=0.96?
@msctube454 жыл бұрын
Thank you Josh for preparing and explaining this presentation aa well as the software to help the understanding of the topics. Great job!
@avijitmandal91244 жыл бұрын
do you have link for doing pruning
@rodrik16 жыл бұрын
best video on decision trees! super clear explanation
@huuhieupham90596 жыл бұрын
Thanks for your sharing. You made it easy to understand for everybody
@बिहारीभायजी2 жыл бұрын
Amazing tutorial but confused too.. 6:22 Here it is not clear , information gain for what? 7:45 Here we are finding IG corresponding to each question at each node
@jaydevparmar98767 жыл бұрын
great to see you back
@sajidbinmahamud24147 жыл бұрын
Long time! i've been waiting for so long
@johnstephen3997 жыл бұрын
This was awesome. Please continue this series.
@lenaara45697 жыл бұрын
You explained it so well. I have been struggling to get it since 2 days. great job !!
@alehandr0s5 жыл бұрын
In the most simple and comprehensive way. Great job!
@browneealex2884 жыл бұрын
At 8:41 He says Now the previous call returns and this node become decision node. What does that mean? How is this possible to return to the root node(false branch(upper line ))after executing the final return of the function. Please give your thoughts it will help me a lot.
@fathimadji85704 жыл бұрын
Excuse me, I am still not clear about how the value of 0.64 comes out, can you explain a little more?
@csorex23765 жыл бұрын
Can you cover Random Forest and SVM too
@AbdulRahman-jl2hv5 жыл бұрын
thank you for such a simple yet comprehensive explanation.
@IvanSedov-i7f4 жыл бұрын
I like your video, man. Its real simple and cool.
@moeinhasani87186 жыл бұрын
very useful.this the best tutorial out on web
@stefanop.60977 жыл бұрын
Please continue your good work! We love you!
@slr31232 жыл бұрын
I understood it as "when Gini Impurity of parent node is zero, Information Gain with child nodes is also zero. So we don't have to ask more question to classify." Is it right?
@muslimbekabduganiev74834 жыл бұрын
You are creating a question with only one value, what if I want to have a question like "Is it GREEN OR YELLOW?". So, basically, I will have to test all combinations of values of size 2 to find the best info_gain for a particular attribute. Furthermore, we could test all possible sizes of a question. Would that give a better result or is it better to use only one value of the attribute to build the question?
@muslimbekabduganiev74834 жыл бұрын
On top of that, why do we use binary partitioning? Can't we use the same attribute to ask a new question on the false rows, but excluding attribute values used in the true rows?
@omarsherif882 жыл бұрын
Awesome tutorial, many thanks!
@guitarheroprince1237 жыл бұрын
Gosh I remember when this series first started, I knew nothing about AI or machine learning and now I'm like full on neural nets and TensorFlow. Gotta admit since I don't have formal education on ml, I don't classical models as much I understand neural nets.
@ritikvimal49154 жыл бұрын
well explained in such a short time
@allthingsmmm5 жыл бұрын
Could you do an example in which the output triggers a method that changes it's self based on success or failure? An easier example, iterations increase or decrease based on probability; Or left, right up, down memorizing a maze pattern?
@Conk-bepis6 жыл бұрын
Please cover ID 3 algorithm, explanation for CART was great!
@aryamanful6 жыл бұрын
I have a follow up question. How did we come up with the questions. As in..how did we know we would like to ask if the diameter is > 3, why not ask if diameter > 2?
@jakobmethfessel62265 жыл бұрын
I thought CART determined splits solely on gini index and that ID3 uses the average impurity to produce information gain.
@saimmehmood69367 жыл бұрын
Would be glad to see English subtitles added to this episode as well.
@hamza-3257 жыл бұрын
His english is very clear for me
@gorudonu7 жыл бұрын
Was waiting for the next episode! Thank you!
@learnsharegrowwithgh21814 жыл бұрын
yes
@j0kersama6694 жыл бұрын
6:22 Impurity = 0.62? How? What is the formular?
@adampaxton52143 жыл бұрын
Great video and such clear code to accompany it! I learned a lot :)
@Xiaoniana5 жыл бұрын
Thank Thank's it was very informative. It took me hours to understand what is meant. Keep going
@congliulyc6 жыл бұрын
best and most helpful tutorial ever seen! Thanks!
@debanjandhar63956 жыл бұрын
Awesome video, helped me lot.... Was struggling to understand these exact stuffs.....Looking forward to the continuing courses.
@andreachristelle53595 жыл бұрын
Clear with good English and Python explanations. So nice to find both together! Thank you!
@houjunliu59787 жыл бұрын
Yaaaay! Your back!
@ricardohincapie15374 жыл бұрын
Such a good video! I have very clear now
@erikslatterv7 жыл бұрын
You’re back!!!
@njagimwaniki43216 жыл бұрын
How come at 6:20 he calls it average but doesn't divide it by 2? Also the same thing in a stack overflow question it seems to be called entropy after. Is this correct?
@mcab22226 жыл бұрын
perfect video on the implementation and the topic
@Dedsman7 жыл бұрын
Why Impurity is calculated one way on 5:33 and on the code it's calculated differently? (1-(times the # of possible labels) vs 1-(# of possible labels)**2)?
@yizhang81067 жыл бұрын
same question..
@ThePujjwal7 жыл бұрын
The wiki explains this one line derivation en.wikipedia.org/wiki/Decision_tree_learning#Gini_impurity
@aseperate Жыл бұрын
The Gino impurity function in the code does not output the same responses listed in the video. It’s quite confusing.
@doy20016 жыл бұрын
Impeccable explanation!
@mrvzhao7 жыл бұрын
At first glance this almost looks like Huffman coding. Thanks for the great vid BTW!
@guccilover20096 жыл бұрын
amazing video!!! Thank you so much for the great lecture and showing the python code to make us understand the algorithm better!
@shadowfox876 жыл бұрын
This is the best tutorial on the net but this uses CART. I was really hoping to use C5.0 but unfortunately the package is only available in R. I used rpy2 to call the C50 function in Python. It would be great if there'd be a tutorial on that.
@mohammadbayat1635 Жыл бұрын
Why Impurity is 0.62 after partitioning on "Is color green" on the left subtree?
@panlis62436 жыл бұрын
I don't get one thing here. How do we determine the number for the question. Like I understand that we try out different features to see which gives us the most info but how do we choose the number and condition for it?
@adamtalent35595 жыл бұрын
Thanks for your lovely lecture.how to catagorize more than 2 prediction classes at the same time ?
@سميرشيخ-ب1س7 жыл бұрын
After such a long time!
@sergior.m.56946 жыл бұрын
Best explanation ever, thank you sir
@uditarpit5 жыл бұрын
It is easy to find best split if data is categorical. How do split happens in a time optimized way if variable is continuous unlike color or just 2 values of diameter? Should I just run through min to max values? Can median be used here? Please suggest!!
@MrAlekoukos6 жыл бұрын
Thanks Google Gods. Please accept my data.The tutorial was brilliant!
@kwarnkham38364 жыл бұрын
Love the music!
@bhuvanagrawal13235 жыл бұрын
Could you make a similar video on fuzzy decision tree classifiers or share a good source for studying and implementing them?
@Yaxoi7 жыл бұрын
Great series!
@supriyakarmakar11116 жыл бұрын
I get lots of idea , thanks sir.But my question to you that if the data set is too large then what will i do ?
@christospantazopoulos80497 жыл бұрын
Excellent explanation keep it up!
@sarrakharbach6 жыл бұрын
That was suuuuper amazing!! Thanks for the video!
@HarpreetKaur-qq8rx4 жыл бұрын
Why is the impurity at the decision node "color=green" equal to 0.62
@KamEt-694 жыл бұрын
How comes that in the calculation of the GINI Impurity we remove from the impurity the square of the probability of each label?
@arminhejazian53063 жыл бұрын
Amazing and Tnx for sharing the code
@MW2ONLINEGAMER1006 жыл бұрын
Thank you so much, beautifully written code too.
@tooniatoonia28303 жыл бұрын
I built a tree from scratch but I am stuck making a useful plot like is obtainable in sklearn. Any help?