How Random Forest Work|How Random Forest Algorithm Works|Random Forest Machine Learning

Поділитися
Вставка
  • Опубліковано 22 лип 2024
  • How Random Forest Work|How Random Forest Algorithm Works|Random Forest Machine Learning
    #RandomForest #RandomForestMachinelearning #UnfoldDataScience
    HI,
    My name is Aman and I am a Data Scientist.
    About this video:
    Want to learn why Random Forests are one of the most popular and most powerful supervised Machine Learning algorithm in Machine Learning? What this video tutorial explaining the basics of Random Forests.
    Random forest algorithm is a one of the most popular and most powerful supervised Machine Learning algorithm in Machine Learning that is capable of performing both regression and classification tasks. As the name suggest, this algorithm creates the forest with a number of decision trees.
    In general, the more trees in the forest the more robust the prediction. In the same way in the random forest classifier, the higher the number of trees in the forest gives the high accuracy results.
    To model multiple decision trees to create the forest you are not going to use the same method of constructing the decision with information gain or gini index approach, amongst other algorithms. If you are not aware of the concepts of decision tree classifier, Please check out my videos here on Decision Tree CART for Machine learning. You will need to know how the decision tree classifier works before you can learn the working nature of the random forest algorithm.
    About Unfold Data science: This channel is to help people understand basics of data science through simple examples in easy way. Anybody without having prior knowledge of computer programming or statistics or machine learning and artificial intelligence can get an understanding of data science at high level through this channel. The videos uploaded will not be very technical in nature and hence it can be easily grasped by viewers from different background as well.
    Join Facebook group :
    groups/41022...
    Follow on medium : / amanrai77
    Follow on quora: www.quora.com/profile/Aman-Ku...
    Follow on twitter : @unfoldds
    Get connected on LinkedIn : / aman-kumar-b4881440
    Follow on Instagram : unfolddatascience
    Watch Introduction to Data Science full playlist here : • Data Science In 15 Min...
    Watch python for data science playlist here:
    • Python Basics For Data...
    Watch statistics and mathematics playlist here :
    • Measures of Central Te...
    Watch End to End Implementation of a simple machine learning model in Python here:
    • How Does Machine Learn...
    Have question for me? Ask me here : docs.google.com/forms/d/1ccgl...

КОМЕНТАРІ • 114

  • @mosama22
    @mosama22 2 роки тому +19

    I'm studying Data Science at MIT, you really can't imagine Aman how much "Unfold Data Science" is helping me, and a couple more channels, before I start any topic I like to tackle it first or just take a general idea, and you can't imagine how much your videos helped! Short, concise, and to the point! Thank you Aman 🙂

  • @muthierry1
    @muthierry1 3 роки тому

    Great explanations .. thank you very Much.. Sir

  • @askpioneer
    @askpioneer Рік тому

    I like your simplicity in teaching , you made topics simple. great job aman.

  • @Sagar_Tachtode_777
    @Sagar_Tachtode_777 3 роки тому +8

    You just nail the big concepts with a simple example.
    Thank you. Keep it UP.
    Grow fast and furious!!

  • @GopiKumar-ny3xx
    @GopiKumar-ny3xx 4 роки тому

    Useful information....nice presentation

  • @spicytuna08
    @spicytuna08 Рік тому

    wpw!!! what a gift in teaching!!!

  • @vishalrai2859
    @vishalrai2859 3 роки тому +1

    wow what a teacher you are exceptional
    i think no one on youtube can teach like you in so easy and lucid way
    thank you sir

  • @azingo2313
    @azingo2313 Рік тому

    Very good explanation ❤

  • @nooreldali7432
    @nooreldali7432 Рік тому

    wow the example about salary in decission tree was sooo good! hats off

  • @eyobsolomon4663
    @eyobsolomon4663 3 роки тому +1

    #Interesting

  • @tejagunupudi5318
    @tejagunupudi5318 Рік тому

    This is pretty good sir. got a lot of input from this video

  • @_proton5
    @_proton5 3 роки тому +3

    Excellent explanation in simple English. Keep up the good work Aman! Thanks!

  • @sunilsharanappa7721
    @sunilsharanappa7721 3 роки тому +1

    Superb explanation , Keep going and growing. Thanks a lot.

  • @prakharagrawal4011
    @prakharagrawal4011 3 роки тому +1

    Beauty of this lecture is very easy and elegant explanation in simple English. deadly combination.. Thank you Aman

  • @alkashie9174
    @alkashie9174 4 роки тому

    great video , simple and easy to understand , Thank you sir !

  • @sangrammishra9923
    @sangrammishra9923 3 роки тому +1

    excellent content

  • @imranaziz5856
    @imranaziz5856 Рік тому

    Excellent presentation and content in a simplified way and shortest time ! Kudos to you. Thank you

  • @mehdimediouni9659
    @mehdimediouni9659 4 роки тому

    very helpful, keep up the good work !

  • @user-ur2en1zq4f
    @user-ur2en1zq4f Рік тому

    my great teacher, thanks

  • @nikhildesai2460
    @nikhildesai2460 2 роки тому

    Great Explanations Aman.

  • @syedkamran6249
    @syedkamran6249 4 роки тому +1

    Well explained sir

  • @santhoshkumar-dd6xq
    @santhoshkumar-dd6xq 3 роки тому +1

    Excellent explanation in simple terms

  • @Gilco333
    @Gilco333 3 роки тому

    You have explained the subject very well!!

  • @sandipansarkar9211
    @sandipansarkar9211 2 роки тому

    finished watching

  • @srinivaskrnagar4029
    @srinivaskrnagar4029 2 роки тому

    Super lecture, easy to understand, keep up the good work bro...

  • @soheilaahmadi4807
    @soheilaahmadi4807 2 роки тому

    very great and clear

  • @uchennanwosu5327
    @uchennanwosu5327 2 роки тому +1

    Bravo! Excellent exposition.

  • @adieu_bae
    @adieu_bae 11 місяців тому

    You are a great teacher!

  • @amoldhumane8277
    @amoldhumane8277 Рік тому

    Thank you Aman!

  • @smegala3815
    @smegala3815 Рік тому +1

    Thank you

  • @archanamohapatra7589
    @archanamohapatra7589 3 роки тому

    Well explained, Thank you👍

  • @bangarrajumuppidu8354
    @bangarrajumuppidu8354 3 роки тому

    well explanation!!

  • @Birdsneverfly
    @Birdsneverfly 2 роки тому +1

    Excellent explanation. Esp the details on what happens when on feature is not selected and how it helps other features to vote in. Probably this also leads to feature importance too.

  • @seetharaman5262
    @seetharaman5262 8 місяців тому

    if i have a more than 2 classes what to do

  • @rusiraliyanage6643
    @rusiraliyanage6643 2 роки тому

    Dear sir, are there are two methods of constructing random forest algorithms ?

  • @sudhavenugopal3726
    @sudhavenugopal3726 3 роки тому +1

    Dear Aman, thank you for your excellent explaination. As ai am a slow learner, I have a doubt from 11.25 mins. Is that the did advantages of Decision tree or Random Forest, because your video is the only source of my learning journey

    • @UnfoldDataScience
      @UnfoldDataScience  3 роки тому

      Disadvantage of Decision tree - Overfitting
      Disadvantage of Random Forest - Resource intensive algorithm

  • @kalam_indian
    @kalam_indian 2 роки тому +1

    Please don't dislike,
    he is the bestest trainer,
    this shows that knowledge is power
    and maximum other UA-cam videos are replica of one another making small modifications with no proper concept
    keep it up, you are the best

  • @gangulreddy7918
    @gangulreddy7918 4 роки тому

    Thank u

  • @jailata3822
    @jailata3822 2 роки тому

    Sir , very nice video. Do you also take paid course?

  • @dimplechutani2768
    @dimplechutani2768 Рік тому

    Hi Aman . This is really great to see all the concepts in easy ,manner . Thanks for uploading it . I have a quick question , when we are testing our dataset on different decision trees then testing dataset will have all the N Columns and decision trees will have n1,n2,n3 columns then how it works ?

    • @UnfoldDataScience
      @UnfoldDataScience  Рік тому

      Very good question - its not a parametric model so it does not matter.

  • @sadhnarai8757
    @sadhnarai8757 4 роки тому +1

    Good ..aman

  • @praveensingh9688
    @praveensingh9688 3 роки тому

    sir, just a small doubt what are these decision trees in random forest classifier made of like do they have other classifier such as ann, logistic regression, svm and other types in them? is it so or something else

  • @kirtisardana8479
    @kirtisardana8479 4 роки тому +1

    Hi Aman ...Till now your all videos are in order if following playlist from older to newer manner . Looks like now decision tree video should be part of this playlist after explaining ensemble and before random forest .... what do you think 🤔?

    • @UnfoldDataScience
      @UnfoldDataScience  4 роки тому

      Thanks for feedback Kirti. Let me check if I can rearrange. Happy learning. tc

  • @nikhilgupta4859
    @nikhilgupta4859 2 роки тому +1

    Hi Aman,
    While you say output of random forest is majority(suppose Y). Does that mean for all 300 inputs the prediction would be Y now. and for all test data the prediction would be Y only???

    • @itsarsh4421
      @itsarsh4421 2 роки тому

      Its not like that you taking it wrong. Not all 300 data points will predict Yes. It shuffle data point row and column wise(not all 300 data points but 2/3 of the data). Its like if row no.1 given in bag1 and 2 other bags also with the corresponding to other feature. And bag1 giving output "Yes" and other 2 bags giving output "No" . Then it play a democratic rule which is every individual have same weightage and right to vote.
      So in this case the output will be "NO"

  • @sagarmestry5514
    @sagarmestry5514 4 роки тому

    Hello Aman can you please explain what it the difference b/w random forest classifier & extra tree classifier?

    • @UnfoldDataScience
      @UnfoldDataScience  4 роки тому

      Hi Sager, for each feature , a random value is selected for the split in case of extra tree. I will explain in more detail in a video. Thanks you

  • @arko1383
    @arko1383 2 роки тому

    Hi Aman, thanks for your videos
    These are really informative and helpful
    I have one question I was asked by an interviewer
    When to use random forest instead of xgboost ?

    • @UnfoldDataScience
      @UnfoldDataScience  2 роки тому +1

      Xgboost needs more server capacity on large data, random forest you get variablr importance, many more points to consider as well. This is a short answer

  • @ravanshyam7653
    @ravanshyam7653 3 роки тому

    for example if there are 500 decesion tress then it predicts 250 1 s and 250 0 s what the random forest will declares sir??

  • @krishna7440
    @krishna7440 3 роки тому

    Sir for binary classification
    if no of tree are even number say we have 6 tree out of which 3 is yes or 1 and rest 3 is 0 or No
    Then what should b output of our Random forest method yes or No or else??

    • @usbabu
      @usbabu 2 роки тому

      I think it just desides by tossing a coin🤔.

  • @askpioneer
    @askpioneer Рік тому

    I have one doubt, in which scenario i choose decision tree ML over random forest, because it seems random forest is the best , then why should we use Decision Tree classifier

    • @UnfoldDataScience
      @UnfoldDataScience  Рік тому

      Normally we use random forest or boosting directly. No decision tree

  • @mehtashyam5196
    @mehtashyam5196 2 роки тому +1

    Sir how can we decide which catagory is to be taken as the root node of any decision tree when more than 2 catagory is given in data

  • @shekharkumar1902
    @shekharkumar1902 2 роки тому

    What is pasting?

  • @rafibasha4145
    @rafibasha4145 2 роки тому

    How to choose number of samples

  • @user-px5of1bi2g
    @user-px5of1bi2g Рік тому

    Is random forest only for predicting? I’m tying to see which features affect the income of taxi drivers in NYC. Can I use random forest for that?

    • @tpennyhealth5861
      @tpennyhealth5861 3 місяці тому

      Ml generally is for predicting. Type of car, age of car, hours spent on the wheel, time of the day driver likes to work, economy of the city, and also drivers rating from other users

  • @nidhichourasiya2743
    @nidhichourasiya2743 3 роки тому +1

    I have a que. if we have 1000 of record data nd we build random forest and n_estimaters=10,then in each decision tree how many record will get train

    • @UnfoldDataScience
      @UnfoldDataScience  3 роки тому +1

      Good question Nidhi.
      There are two important parameters. One is "bootstrap" And other is "max_sample". For taking subset of data in each tree, you must say " Bootstrap " = True. By default it's True in python sklearn.
      Coming to "max_sample", if you say " none"(default), all records go in all trees.
      If you say a integer, those many rows.
      If you say a decimal, that percent of total no of rows.

    • @nidhichourasiya2743
      @nidhichourasiya2743 3 роки тому

      @@UnfoldDataScience tnx sir

  • @shivanshjayara6372
    @shivanshjayara6372 3 роки тому

    @10:22 You said that salary may not be part of further decision tree...(may not ) but what if salary is the only feature which has less entropy and high information gain. If it is so then i think in every decision tree root node will be salary only.....
    Or if it is taking different different rows and columns then i think it may happen that salary may not be always selected as a root node?
    i think i have question you also and answered my question by my own but you tell if im wrong then correct me please

    • @UnfoldDataScience
      @UnfoldDataScience  3 роки тому

      Hi Shivansh, All the columns will not be selected in every tree. Hence, its possible that "Salary" is not part of few trees hence there is no question of it being root node.

    • @shivanshsingh5555
      @shivanshsingh5555 3 роки тому +1

      Ok u mean to say that in randome forest all the columns are not get selected at once for all the decision tree...columns gets selected randomly?

    • @UnfoldDataScience
      @UnfoldDataScience  3 роки тому

      Yes absolutely.

  • @vinijcobatgamildotcom
    @vinijcobatgamildotcom 4 роки тому +1

    Can you make videos on linear regression and logistics regression.

    • @UnfoldDataScience
      @UnfoldDataScience  4 роки тому

      Hi Oyster, These videos are already there on my channel. Please find link below:
      ua-cam.com/video/8PFt4Jin7B0/v-deo.html

  • @tpennyhealth5861
    @tpennyhealth5861 3 місяці тому

    I don't think the sample has to have less observations. We sample N times for N rows of data

  • @HtS643KyS6555GxQ3edA
    @HtS643KyS6555GxQ3edA 3 роки тому

    Is there a proof of random forest’s accuracy as an algorithm? Thanks

  • @ajaykushwaha-je6mw
    @ajaykushwaha-je6mw 3 роки тому

    There is no doubt that RF is much better than Decision Tree, then why still Decision Tree still in use ?

  • @geekyprogrammer4831
    @geekyprogrammer4831 2 роки тому +1

    are you from Rajistan?

    • @UnfoldDataScience
      @UnfoldDataScience  2 роки тому

      No Sir.

    • @geekyprogrammer4831
      @geekyprogrammer4831 2 роки тому

      @@UnfoldDataScience I should be the one to call you Sir lol. Regardless from where you are, your Data Science content is gold. The way you boil down and explain complex concepts in very simple English is really mind blowing. In shaa Allah planning to see all of your videos and extract maximum information from your channel.