Hindi Machine Learning Tutorial 13 - K Fold Cross Validation

Поділитися
Вставка
  • Опубліковано 16 вер 2019
  • Many times we get in a dilemma of which machine learning model should we use for a given problem. KFold cross validation allows us to evaluate performance of a model by creating K folds of given dataset. This is better then traditional train_test_split. In this tutorial we will cover basics of cross validation and kfold. We will also look into cross_val_score function of sklearn library which provides convenient way to run cross validation on a model
    #MachineLearningHindi #PythonMachineLearning #MachineLearningTutorial #Python #PythonTutorial #PythonTraining #MachineLearningCource #sklearn
    Code: github.com/codebasics/py/blob...
    Exercise: Exercise description is avialable 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

КОМЕНТАРІ • 72

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

    Check out our premium machine learning course with 2 Industry projects: codebasics.io/courses/machine-learning-for-data-science-beginners-to-advanced

    • @renumathematics5219
      @renumathematics5219 2 місяці тому

      hello sir, I want to contact with you. please provide your contact number or mail address

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

    Thank you so much for this premium video

  • @ShravanKumar-bv7kd
    @ShravanKumar-bv7kd 9 місяців тому

    big thanks to you sir from all the non cs students who want to switch their career into data science....its really helpful for us
    मार्गदर्शन करते रहो गुरूजी 🙏

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

    best video lecture

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

    This is best video I understand how library work in stratified KFold.

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

      Rohit, sukriya for your kind words of appreciation.

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

    Brilliantly Explained

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

    Wow, such a great explanation. Really loved your approach!

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

    Superrrrrrrr se bhi uparrrrrrrr☺️😂😂

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

    Nice video... very well explained...🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰

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

    best teacher ever

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

    Hello Sir, for new unseen data, then which model will be used out of the 3 (in case of 3 fold cross validation) to predict this data?

  • @AbdulRehman-fm1zh
    @AbdulRehman-fm1zh Рік тому

    Great explanation.

  • @PrinceKumar-eb8hd
    @PrinceKumar-eb8hd 4 роки тому

    as usual best video

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

    You are best bro ❤💖💕

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

    After a Long a Time I Saw a Good Easy to understand Machine Learning Training. Well done.
    Can You provide all Training code in R Language(IF Possible)

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

    Sir, kya hum kfold cross validation use kar k LSTM, ARIMA, MLP ka accuracy nikal sakte hai??

  • @zeeshanmohammad6296
    @zeeshanmohammad6296 4 роки тому +2

    awesome. thank you very much!

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

    thankyou so much sir jii..

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

    sir i didn't get that why svc score is so less i mean svc is mostly used for digits classification as u told in svm lecture?

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

    thank you sir , very nicely explained .

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

    मुझे यह वीडियो भाई सबसे ज्यादा पसंद आया.

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

    great explanation sir .

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

    Sir why we didn't change this dataset into Dataframe first??
    we were doing that in case of iris data set

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

    Sir tell me plz. If we set 150 cross validation then what will be happen

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

    thank you sir

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

    Nicely explained,
    Very beautiful information ❤️ it.

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

    The best video!!

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

    this parameter give me better result = cross_val_score(SVC(gamma=7),x,y,cv=3),
    and score is = array([1. , 0.96, 0.96])

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

    i didnt understand the splitting into 3 means in that example....print to uska index number ho raha hai

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

    I was trying this with a another dataset ('titanic')
    And I was not Abel to access the input data inputdata[train_index]
    At the time stamp 14:15
    Can u please help
    I got the solution
    inputdata.iloc[train_index]

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

    Sir, before cross validation, score was 96 and 97, after validation, score becomes decreased. Isn't it?

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

    mast video hai bhai.

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

    Thanks again sir

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

    I perform train test split and give 30% data to test then apply model every model score give me 1.

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

    Brilliant !!

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

    thank you sir i learn lot's of things from you, sir please make one project of ML in Hindi like real estate , hindi mai acha response aayega.

  • @Pallab-eq1zs
    @Pallab-eq1zs 11 місяців тому

    Logistic regression gives highest score if i dont apply fine tune in other two models. If svm , get gamma=0.7 then score is 98%. Anyone please tell me which is the correct answer

  • @crazyboy-gw7rk
    @crazyboy-gw7rk 3 роки тому

    Kfold is asking yor y object??

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

    Sir great understanding ... Come with a deployment series

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

    array([0.96078431, 0.92156863, 0.95833333])
    on iris with 3 folds (default)

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

    Bcha bahut bdiya lga

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

    @codebasicsHindi best model ac to me is SVC

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

    Logistic regression has the highest score using cross_val_score() 97.33

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

      That’s the way to go Yash, good job working on that exercise

  • @UsmanAli-xj2jt
    @UsmanAli-xj2jt 3 роки тому

    The word "Thanks" is a very small word for you. Just pray for you that May Almighty Allah increases your knowledge.

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

    Hi Sir Tumhi Maharastrain ahe ka great u said barobar .... Great sir Tumhi Marathi medha start kara la pahija hindi pan chalel kai harkat nahi

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

      M Patha, Mai gujarati hun lekin me samaj sakta hu tum kya bol rahe ho. Hindi me hi video banate rahunga jisse sabje jyada logo ke paas mera content jaa sake

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

      @@codebasicsHindi Sir aapki bohat hi best videos upload karra ho mai apko hi follow karra hu .. sir mera 1 question hai fir new new technologies arahi hai to jo hum sikh rahe hai wo to old hojayengi na ab aur ya carrier ki demand bhi kam hojayengi... please aapka kya opinion hai...

  • @JatinSharma-tu2zg
    @JatinSharma-tu2zg 3 роки тому

    Sir jab sklearn.model_selection import kfold karte hain to wanha error aa raha hai no module named ‘ sklearn.model_selection

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

      stackoverflow.com/questions/40704484/importerror-no-module-named-model-selection

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

    bhai sabh ekk video me dalo for machine learning aur publish karo

  • @HarryPotter-tp2sl
    @HarryPotter-tp2sl 2 роки тому

    LR GOT (97) but svc GOT (100) RF got (94)
    so i think svm got higher score in iris dataset

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

    how YOLO can train with k fold cross validation??

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

      On UA-cam search for "codebasics YOLO ", you will find my videos please watch it

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

    R u gujrati?? Nice video