Hindi Machine Learning Tutorial 12 - Random Forest

Поділитися
Вставка
  • Опубліковано 16 вер 2019
  • Random forest is a popular regression and classification algorithm. In this tutorial we will see how it works for classification problem in machine learning. It uses decision tree underneath and forms multiple trees and eventually takes majority vote out of it. We will go over some theory first and then solve digits classification problem using sklearn RandomForestClassifier. In the end we have an exercise for you to solve.
    #MachineLearningHindi #PythonMachineLearning #MachineLearningTutorial #Python #PythonTutorial #PythonTraining #MachineLearningCource #RandomForest
    Code: github.com/codebasics/py/blob...
    Exercise: Exercise description is available in above notebook towards the end
    To download csv and code for all tutorials: go to github.com/codebasics/py, click on a green button to clone or download the entire repository and then go to relevant folder to get access to that specific file.
    Website: codebasicshub.com/
    Facebook: / codebasicshub
    Twitter: / codebasicshub

КОМЕНТАРІ • 37

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

    Do you want to learn technology from me? Here are my affordable video courses: codebasics.io/?

  • @codedish3343
    @codedish3343 2 роки тому +3

    Sir,
    I truly appreciate your teaching skills. you understand what is needed of a learner. I watched all of your videos 1-current. I learned a lot and practiced the exercise also. one request from you, please never delete these videos.

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

    You r a great teacher hand of you sir♥️

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

    Great tutorial. I rarely comment on videos but this was worth it.

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

    Thank u so much sir for this great and easy to understand explanation. I've seen many videos on UA-cam for ML but nobody told that sklearn already have some data sets which we can use. They just start coding what they mugged up.
    I appreciate your efforts. You're doing a great job. Please also make videos on SVM, KNN, Naive-Baiyes.
    Again thank you so much for this.

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

    Humor in between the video makes learning interesting !!

  • @rb4754
    @rb4754 9 місяців тому

    beautifully explained as always.

  • @SachinSharma-hv3wm
    @SachinSharma-hv3wm 2 роки тому

    thank you so much sir for this simplest explanation. you are the best teacher. Love from Punjab.

  • @rutikbodkeacademy1247
    @rutikbodkeacademy1247 10 місяців тому

    This playlist is also useful for University exam

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

    100% Using n_estimators= 200

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

    from sklearn.model_selection import train_test_split
    X_train,X_test,y_train,y_test=train_test_split(df.drop(["target_name","target"],axis=1),df.target,test_size=0.1)
    from sklearn.ensemble import RandomForestClassifier
    model=RandomForestClassifier(n_estimators=10)
    model.fit(X_train,y_train)
    model.predict(X_test)
    model.score(X_test,y_test)
    1.0

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

    from sklearn.preprocessing import StandardScaler
    SS=StandardScaler()
    x=SS.fit_transform(x)
    from sklearn.model_selection import train_test_split
    x_train,x_test,y_train,y_test=train_test_split(x,y,test_size=0.20,random_state=10)
    model=RandomForestClassifier()
    model.fit(x_train,y_train)
    model.score(x_test,y_test)
    1.0

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

    ♥️♥️

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

    Got constant 96% accuracy whether how many times i scale n_estimators from 10-200. Is it ok being not changed so far. Sir!

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

    First default using estimator score = 86%
    my n_estimator (n=15) score = 93%

  • @SaurabhSingh-gh2ee
    @SaurabhSingh-gh2ee 3 роки тому +1

    Y is variable depending upon U, V, W, X variables.
    Y= f(U,V,W,X)
    Y= aU+bV+cW+dW
    where a,b,c,d are weights or constants. how can i use AI to assign best weights so that i can get maximum values of Y.
    sum of a+b+c+d=1.
    please help me to solve this

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

    got an accuracy from 98-99 using 45 trees

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

    hi sir,
    i have one continuous dependent variable and 7 independent variable all is categorical ( more than 20 categories in each) variable. should i have to make all into dummy variables ? for reggresion model ?

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

      no you should use label encoding use of dummy variables increase columns

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

    sir why you not take random state?

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

    n_estimators from 10 to 70, score is 100%, from 80 to 100 accuracy dropped to 96%

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

      Good find Farhan

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

      @@codebasicsHindi use standardscaler no need to fine tuning of n_estimater

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

    i continously change n estimator from 10 to 300 but the score remain same
    in my case model score is 94%

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

    100% using Random forest iris data

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

    How to download any csv file from github without cloning the whole repo.
    step1:- goto the desired csv file.
    step2:- click on it and open it in RAW form.
    step3:- now right click your mouse as choose save as.
    step4:- now set the path in your computer where you want that file.
    step5:- Booya csv file downloaded

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

    Sir, add some more interesting video non this playlist.

  • @AnkitSharma-wj2tb
    @AnkitSharma-wj2tb 4 роки тому

    Codebasics Sir:- Chubby bacha main hu 🤣🤣🤣 lol

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

    i am feeling like a script kiddie , actually I am not coding things using my brain, just copy pasting pre build models , is machine learning that easy? idk , i want to learn something hard

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

    1.0

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

    N_estimater 10 and 20 is 1.0
    N_estimater 5 is 0.9916666666666

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

    my score 0.9