Machine Learning Tutorial Python - 7: Training and Testing Data

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 มิ.ย. 2024
  • sklearn.model_selection.train_test_split method is used in machine learning projects to split available dataset into training and test set. This way you can train and test on separate datasets. When you test your model using dataset that model didn't see during training phase, it will give you better idea on the accuracy of a model.
    #MachineLearning #PythonMachineLearning #MachineLearningTutorial #Python #PythonTutorial #PythonTraining #MachineLearningCource #MachineLearningMethod #DataTraining #sklearntutorials #scikitlearntutorials
    Code: github.com/codebasics/py/blob...
    Topics that are covered in this Video:
    0:00 - Theory behind why we need to split given dataset into training and test using sklearn train set split method.
    0:54 - Coding (Here we use car price prediction problem to demonstrate train test split)
    2:14 - Use train_test_split from sklearn
    3:54 - Use of random state method
    4:49 - Use of fit() method to train your model
    5:35 - Score() method (to check the accuracy of the model)
    Do you want to learn technology from me? Check codebasics.io/?... for my affordable video courses.
    Next Video:
    Machine Learning Tutorial Python - 8: Logistic Regression (Binary Classification): • Machine Learning Tutor...
    Very Simple Explanation Of Neural Network: • Neural Network Simply ...
    Populor Playlist:
    Data Science Full Course: • Data Science Full Cour...
    Data Science Project: • Machine Learning & Dat...
    Machine learning tutorials: • Machine Learning Tutor...
    Pandas: • Python Pandas Tutorial...
    matplotlib: • Matplotlib Tutorial 1 ...
    Python: • Why Should You Learn P...
    Jupyter Notebook: • What is Jupyter Notebo...
    Tools and Libraries:
    Scikit learn tutorials
    Sklearn tutorials
    Machine learning with scikit learn tutorials
    Machine learning with sklearn tutorials
    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.
    🌎 My Website For Video Courses: codebasics.io/?...
    Need help building software or data analytics and AI solutions? My company www.atliq.com/ can help. Click on the Contact button on that website.
    #️⃣ Social Media #️⃣
    🔗 Discord: / discord
    📸 Dhaval's Personal Instagram: / dhavalsays
    📸 Codebasics Instagram: / codebasicshub
    🔊 Facebook: / codebasicshub
    📱 Twitter: / codebasicshub
    📝 Linkedin (Personal): / dhavalsays
    📝 Linkedin (Codebasics): / codebasics
    🔗 Patreon: www.patreon.com/codebasics?fa...

ความคิดเห็น • 355

  • @codebasics
    @codebasics  2 ปีที่แล้ว +2

    To learn AI concepts in a simplified and practical manner check our course "AI for everyone": codebasics.io/courses/ai-for-everyone-your-first-step-towards-ai
    Do you want to learn technology from me? Check codebasics.io/ for my affordable video courses.

  • @codebasics
    @codebasics  3 ปีที่แล้ว +4

    Step by step roadmap to learn data science in 6 months: th-cam.com/video/H4YcqULY1-Q/w-d-xo.html
    5 FREE data science projects for your resume with code: th-cam.com/video/957fQCm5aDo/w-d-xo.html

  • @jingyiwang5113
    @jingyiwang5113 ปีที่แล้ว +6

    Thank you so much for your clear explanation and demonstration! It is really helpful! And it saves me because I have been stuck at one of my class assignments for more than two weeks. I am really grateful for your help!

  • @shanthinagasubramanian2866
    @shanthinagasubramanian2866 4 ปีที่แล้ว +53

    Thank you so much for the tutorials, easy to practice and good to understand the algorithms basics. Feels nice to see Indians sharing knowledge to the world :)

    • @codebasics
      @codebasics  4 ปีที่แล้ว +12

      Shanthi, I am happy you liked the content.

    • @diorenzo
      @diorenzo ปีที่แล้ว +1

      All the best python tutorials i saw were made by indians ahah and I'm from Italy lol

  • @codebasics
    @codebasics  4 ปีที่แล้ว

    Step by step guide on how to learn data science for free: th-cam.com/video/Vn_mmOuQkSA/w-d-xo.html
    Machine learning tutorials with exercises:
    th-cam.com/video/gmvvaobm7eQ/w-d-xo.html

  • @tootiredone7293
    @tootiredone7293 5 ปีที่แล้ว +2

    Amazing video with a precise and clear explanation of the topic! Thank you very much!

  • @lifeisnotvibestv5124
    @lifeisnotvibestv5124 4 ปีที่แล้ว +9

    52 seconds in and i already understand. Thank you

  • @pscih7149
    @pscih7149 2 ปีที่แล้ว

    Dude thank you so much! Your videos have been getting me through my computational summer research for the past 2-3 months!

    • @codebasics
      @codebasics  2 ปีที่แล้ว

      I am happy this was helpful to you.

  • @codebasics
    @codebasics  4 ปีที่แล้ว

    How to learn coding for beginners | Learn coding for free: th-cam.com/video/CptrlyD0LJ8/w-d-xo.html

  • @ramanak6961
    @ramanak6961 4 ปีที่แล้ว

    Your videos are always precise, short, simple and clear in explanation of the topic! I love the way you teach it. Thank you !

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      Glad you like them Ramana!

  • @123SHAMIL123
    @123SHAMIL123 3 ปีที่แล้ว +1

    Finally understood exactly how to use the function after watching this video, thanks!

  • @GeriReshef
    @GeriReshef 5 ปีที่แล้ว

    A great explanation: short, simple, concentrate only in a basic examples without additional tools that would make it more sophisticated but less clear.
    When I'm looking for an "Hello world" example, that's exactly what I need.
    Thanks!

    • @codebasics
      @codebasics  5 ปีที่แล้ว

      Geri, "hello world" is a very accurate way of describing my content. Thanks for posting a comment.

  • @fernandoflores3728
    @fernandoflores3728 3 ปีที่แล้ว +4

    Excellent explanation! Thanks a lot!!, methodology is quite straight forward, however in my experience (short by now), we need to determinate which is the best classifier to use based on the data investigation, mainly using data visualization tools and then prepare the data previously to process it.

  • @priyusha7469
    @priyusha7469 4 ปีที่แล้ว +25

    It really helped me in completing my final year project. Thank you and all the best.

    • @DARELASISI
      @DARELASISI 4 ปีที่แล้ว

      I am currently doing my research(project) in Machine Learning(Iris Matching). I would be so happy to hear from you, my email address, darelasisi@gmail.com. Thanks.

    • @jutsuuchiha3858
      @jutsuuchiha3858 4 ปีที่แล้ว

      Can you share details of your project

    • @sudharsanb9391
      @sudharsanb9391 3 ปีที่แล้ว

      can you say what project are you doing and which department u belongs to?

    • @sudharsanb9391
      @sudharsanb9391 3 ปีที่แล้ว

      @@DARELASISI can you say what project are you doing and which department u belongs to?

    • @vengalrao5772
      @vengalrao5772 3 ปีที่แล้ว

      @@sudharsanb9391 mail her

  • @pawanamarnani3011
    @pawanamarnani3011 5 ปีที่แล้ว

    Friend... Very Nice way you have explained each and every thing... Thanks for such tutorials

  • @karapw
    @karapw 5 ปีที่แล้ว +22

    Your videos are awesome and are making me stay above water in my Data Science class. Thank you!!!!

  • @bishowlamsal7319
    @bishowlamsal7319 2 ปีที่แล้ว

    Everybody are teaching in advance way in TH-cam which is diffiicult of beginners to learn it but when I watched this video I felt over the moon because I had been searching video in this topic from few days.
    Thank you so much for this amazing and well understable tutorial

    • @Gandhi_Physique
      @Gandhi_Physique 2 ปีที่แล้ว

      Yes, it definitely helps to have someone explain the basics instead of copy/pasting 300 lines of code and expecting me to know what is happening.

  • @shaharlackritz1553
    @shaharlackritz1553 5 ปีที่แล้ว

    clear, short and simple. Thank you.

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      Shahar, thanks for posting the feedback buddy.

  • @bhaiyahnsingh4069
    @bhaiyahnsingh4069 3 ปีที่แล้ว

    Thanks for not adding advertisements in middle of the video it creates distribution, some channels are doing this for money not for studies purposes..✌✌great tutorial 👍

  • @Mai-jk8nm
    @Mai-jk8nm 2 ปีที่แล้ว

    very helpful and easy to understand! thank you!

  • @sanjaykala6415
    @sanjaykala6415 4 ปีที่แล้ว

    Another good example for machine learning,thanks.

  • @shailesh8108
    @shailesh8108 4 ปีที่แล้ว

    Simply great, very easy to understand

  • @ViniciusRaphael
    @ViniciusRaphael 3 ปีที่แล้ว

    Thank you very much. Your explanation was very clear and straight forwarding.

  • @antoniomanoel2873
    @antoniomanoel2873 3 ปีที่แล้ว +1

    Greetins from Brazil. you got a powerfull content here. thanks a lot

  • @renupahwa9374
    @renupahwa9374 2 ปีที่แล้ว +1

    Thank you very much for this wonderful explanation 😊

  • @PandoraMakesGames
    @PandoraMakesGames 5 ปีที่แล้ว +4

    Great video man!

  • @passtoprakash
    @passtoprakash 5 ปีที่แล้ว

    Really Excellent dude! Keep it up.

  • @sonalithakker6517
    @sonalithakker6517 3 ปีที่แล้ว

    Amazing sir, itna complex topic itna easily samja diya

  • @Ankurkumar14680
    @Ankurkumar14680 5 ปีที่แล้ว +2

    As usual awesome video, please put a series on either NLP, Speech Recognition or DEEP Learning....eagerly waiting for your new videos

  • @drummerboi4eva
    @drummerboi4eva 4 ปีที่แล้ว +2

    Super video series! :) Keep up the great job! Looking to see more of these indepth videos on Python ML in the near future.

    • @codebasics
      @codebasics  4 ปีที่แล้ว +1

      Dear Yash, thanks for comment. I will keep uploading more videos. Stay in touch and keep sharing. Thanks.

  • @VRUNO
    @VRUNO 2 ปีที่แล้ว

    the explanaintion was clear like the water! thanks Sir!

  • @roopagaur8834
    @roopagaur8834 4 ปีที่แล้ว

    Thanks a lot. Superb teaching

  • @araeneangela
    @araeneangela 3 ปีที่แล้ว

    Great video, simple and straightforward!

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad it was helpful!

  • @yashm05
    @yashm05 4 ปีที่แล้ว +3

    You finally made me understand this method 😱 thanks alot brother 😘

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      Yash 97, I am glad you liked it.

  • @rambaldotra2221
    @rambaldotra2221 3 ปีที่แล้ว

    Mind Blowing ✨Really Love it

  • @maielshazly6054
    @maielshazly6054 2 ปีที่แล้ว

    Thank you very much, this is quite clear!

  • @noorameera26
    @noorameera26 3 ปีที่แล้ว +1

    You're my fav go-to-youtuber for ML at the moment! :D

  • @rooha8382
    @rooha8382 3 ปีที่แล้ว

    exactly what i was looking for thankyou so much

  • @MdAdilmed
    @MdAdilmed ปีที่แล้ว

    I am very new to ML, excellent video content. Thanks

  • @datawhipper
    @datawhipper 4 ปีที่แล้ว

    Well detailed. It just solved a problem I have been facing for weeks

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      Akande I am glad you found it useful 😊

  • @tahiakabir6694
    @tahiakabir6694 2 ปีที่แล้ว

    Thank you for this easy to understand explanation.

  • @Mr_ST_720
    @Mr_ST_720 ปีที่แล้ว

    Super easy explanation..thanks !!

  • @kshitijarunbidari6723
    @kshitijarunbidari6723 ปีที่แล้ว

    Brilliant Video Sir, Great Explanation

  • @khoirunnisaafandi3404
    @khoirunnisaafandi3404 5 ปีที่แล้ว +2

    Thank you!!!

  • @ChiSoxn2k5
    @ChiSoxn2k5 4 ปีที่แล้ว

    Great presentation. Easy to understand. Thank you

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      Glad you liked it Paul

  • @grumpyae86
    @grumpyae86 3 ปีที่แล้ว

    Can not thank you enough! Fantastic work

  • @SkywalkerOne1977
    @SkywalkerOne1977 4 ปีที่แล้ว +10

    This is great, thank you. Could you explain how validation data comes into play?

  • @haiderali6915
    @haiderali6915 4 ปีที่แล้ว +1

    Thanks Its really help to complete my assignemnt

  • @AMITRATHOD-em3yp
    @AMITRATHOD-em3yp ปีที่แล้ว

    Thanks for this amazing tutorial.

  • @rawanfouda2291
    @rawanfouda2291 4 ปีที่แล้ว

    Thank you so much that was so good.

  • @justonbryant251
    @justonbryant251 5 ปีที่แล้ว

    Great video!

  • @IamThankGodNnaji
    @IamThankGodNnaji 2 ปีที่แล้ว

    I benefited from your tutorial, thank you.

  • @chrisber
    @chrisber 3 ปีที่แล้ว

    Thanks so much mate, yours is the first video I've found which hasn't used the iris dataset for this. The iris dataset from Sklearn confuses the hell out of me with its different commands.

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad you found this useful 😊👍🙏

  • @shravanswadi1655
    @shravanswadi1655 3 ปีที่แล้ว

    Brilliant videos my friend, keep it up!

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      I am glad you liked it

  • @ganeshgunjal4220
    @ganeshgunjal4220 2 ปีที่แล้ว

    very useful vid sir. thank u so much.

  • @sundarpandey3147
    @sundarpandey3147 4 ปีที่แล้ว +1

    You have fantastic tutorial. Great.

    • @codebasics
      @codebasics  4 ปีที่แล้ว +2

      Sundar, Thanks for the comment. By the way I like your name :) Same as Google CEO.. ha ha...!

  • @ChelseaKubasu
    @ChelseaKubasu 8 หลายเดือนก่อน +1

    This was extremely helpful, thanks

    • @codebasics
      @codebasics  8 หลายเดือนก่อน

      Glad it helped!

  • @aishwaryamurali450
    @aishwaryamurali450 ปีที่แล้ว

    Thats a nice video! You are awesome !

  • @shivadumnawar7741
    @shivadumnawar7741 4 ปีที่แล้ว

    Hello sir, I'm regularly watching your videos. These are very helpful. You are doing a great job. Could you upload more projects of data science? Thanks a lot.

  • @VANAPARTHIBULLISIVABCE
    @VANAPARTHIBULLISIVABCE 3 หลายเดือนก่อน +1

    superb explanation

  • @jayshreedonga2833
    @jayshreedonga2833 ปีที่แล้ว

    THANKS YOU ARE SIMPLY GREAT.

  • @aguilar3271
    @aguilar3271 2 ปีที่แล้ว

    Thank you sooooo much!

  • @riaswamy4778
    @riaswamy4778 ปีที่แล้ว

    I pursued data science twice just to understand these concepts..but couldn't understand these concepts. And this what always kept me back from achieving my dream job as ds. But now after watching this video it makes my life easy in understanding the concepts. I hope 🙏 i soon excel in ds..😊😊.

  • @mdsagorahmed3488
    @mdsagorahmed3488 ปีที่แล้ว

    Thanks for your tutorial

  • @nivethitham9860
    @nivethitham9860 3 ปีที่แล้ว

    Thanks a lot!! Was of great help

  • @sanketjaisingpure7028
    @sanketjaisingpure7028 2 ปีที่แล้ว +1

    Thank you so much Sir, You explain every line of code and why we use that code, it's solve my problem

    • @codebasics
      @codebasics  2 ปีที่แล้ว

      Glad to hear that

  • @abutalib953
    @abutalib953 4 ปีที่แล้ว

    Very well explained thank u

  • @joxa6119
    @joxa6119 2 ปีที่แล้ว

    All clear! God blessed you!

    • @codebasics
      @codebasics  2 ปีที่แล้ว

      Glad it was helpful!

  • @VishwainGermany
    @VishwainGermany 4 ปีที่แล้ว

    Thank you so much. I love you.

  • @balkrishanmahabir7982
    @balkrishanmahabir7982 2 ปีที่แล้ว

    wonderful, today i learn how to split the data set and implement Linear regression modewl

  • @rafael246
    @rafael246 5 ปีที่แล้ว +1

    amazing playlist, thanks and congrats!

  • @amandeepsaha
    @amandeepsaha ปีที่แล้ว

    You're awesome man

  • @manujavangula4551
    @manujavangula4551 3 ปีที่แล้ว

    This video is excellent!!

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad it was helpful!

  • @dioclips
    @dioclips 4 ปีที่แล้ว +1

    That was helpful

  • @priyanshusharma2516
    @priyanshusharma2516 3 ปีที่แล้ว

    This is an amazing content . Thanks sir .

    • @codebasics
      @codebasics  3 ปีที่แล้ว +1

      Glad it was helpful!

  • @abdulazizalharbi6228
    @abdulazizalharbi6228 3 ปีที่แล้ว

    great work, the way you teach is very smooth keep it up

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      I am happy this was helpful to you.

  • @ousmanealamakaba3135
    @ousmanealamakaba3135 2 ปีที่แล้ว

    thank you so much sir for everything

  • @manavshah2119
    @manavshah2119 3 ปีที่แล้ว

    Sir Very Nice explanation and with practical

  • @hackercop
    @hackercop 2 ปีที่แล้ว

    Thanks for explaining this to me.

    • @codebasics
      @codebasics  2 ปีที่แล้ว +1

      Glad it was helpful!

  • @AlinJain
    @AlinJain 11 หลายเดือนก่อน

    BRO THIS MADE SO MUCH MORE SENSE NOW

  • @user-yx4ic1tf4o
    @user-yx4ic1tf4o 10 หลายเดือนก่อน

    awsome!

  • @linomorin7682
    @linomorin7682 3 ปีที่แล้ว

    Amazing video !

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad it was helpful!

  • @riviera443
    @riviera443 3 ปีที่แล้ว

    Thanks a ton...

  • @pranjalijambhule6729
    @pranjalijambhule6729 3 ปีที่แล้ว

    Very useful!

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad it was helpful!

  • @me_debankan4178
    @me_debankan4178 ปีที่แล้ว

    Awesome 👍

  • @ouaildjaidja1447
    @ouaildjaidja1447 3 ปีที่แล้ว

    it's really helpful thanks a lot

  • @saidhinakarduggirala928
    @saidhinakarduggirala928 5 ปีที่แล้ว

    good explanation.

  • @leilaamini405
    @leilaamini405 2 ปีที่แล้ว

    you are the best

  • @optimalsolutionprogramming1299
    @optimalsolutionprogramming1299 2 ปีที่แล้ว +1

    This was a great video for understanding the fundamentals of this topic. Thank you so much for sharing.

  • @debatradas9268
    @debatradas9268 2 ปีที่แล้ว

    thank you so much

  • @pankajuprety9216
    @pankajuprety9216 3 ปีที่แล้ว

    Thankyou so much

  • @kevin-bm1vf
    @kevin-bm1vf 2 ปีที่แล้ว

    Very helpful

  • @deepakrajput-gs4fb
    @deepakrajput-gs4fb 5 ปีที่แล้ว

    thanks brother ......

  • @thelightings
    @thelightings 8 หลายเดือนก่อน

    thank you alot

  • @AbhishekSingh-og7kf
    @AbhishekSingh-og7kf 3 ปีที่แล้ว

    Thank you!

  • @alvinlorejas2687
    @alvinlorejas2687 4 ปีที่แล้ว

    Thank you.

  • @yogeshkumarshankariya642
    @yogeshkumarshankariya642 4 ปีที่แล้ว

    Superb Sir, It really helps me a lot, I took a course from udemy data science by Bootcamp, but It didn't explain like you.

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      Glad to hear that.

  • @riaswamy4778
    @riaswamy4778 ปีที่แล้ว

    Please keep on making such easy understandable projects 😅

  • @hamzakazmi236
    @hamzakazmi236 5 ปีที่แล้ว

    Hi thank you for videos! Do you have any video covering logistic regression?

  • @AishaGh
    @AishaGh 4 หลายเดือนก่อน

    thank you