Build your first machine learning model in Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ค. 2024
  • In this video, you will learn how to build your first machine learning model in Python using the scikit-learn library.
    🔗 Colab colab.research.google.com/
    🔗 Code github.com/dataprofessor/firs...
    🔗 GitHub github.com/dataprofessor
    🔗 Blog towardsdatascience.com/how-to...
    📖 DiscoverDataScience www.discoverdatascience.org
    📖 www.discoverdatascience.org/a...
    Time stamp
    0:00 Introduction
    0:15 Getting started with Google Colab
    1:30 Load dataset
    6:52 Split to X and y
    8:30 Split data to train/test set
    11:45 About DiscoverDataScience
    13:00 Model building with Linear regression
    21:55 Model building with Random forest
    26:00 Model comparison
    27:55 Data visualization
    30:32 Conclusion
    Support my work:
    👪 Join as Channel Member:
    / @dataprofessor
    ✉️ Newsletter newsletter.dataprofessor.org
    📖 Join Medium to Read my Blogs / membership
    ☕ Buy me a coffee www.buymeacoffee.com/dataprof...
    Recommended Resources
    📚 Books kit.co/dataprofessor
    😎 Taro (Tech Career Mentorship) www.jointaro.com/r/dataprofes...
    📜 Google Data Analytics Professional Certificate imp.i384100.net/google-data-a...
    🤔 Interview Query www.interviewquery.com/?ref=d...
    🖥️ Stock photos, graphics and videos used on this channel 1.envato.market/c/2346717/628...
    Subscribe:
    🌟 Coding Professor / @codingprofessor
    🌟 Data Professor th-cam.com/users/dataprofessor...
    Disclaimer:
    Recommended books and tools are affiliate links that gives me a portion of sales at no cost to you, which will contribute to the improvement of this channel's contents.
    #datascience #machinelearning #dataprofessor
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @brittanybutterworth7994
    @brittanybutterworth7994 11 หลายเดือนก่อน +40

    🐍My heart is pounding so hard! I can't believe it was that 'simple' to make a model!! It gives me so much confidence to start learning more and add more models to the code I've made

    • @Samuel-ik5wp
      @Samuel-ik5wp 3 หลายเดือนก่อน +2

      Stop SIMPING dude.

    • @jaredheeralal2095
      @jaredheeralal2095 3 หลายเดือนก่อน +6

      ​@@Samuel-ik5wp Stop hating

    • @binarysaiyan9389
      @binarysaiyan9389 2 หลายเดือนก่อน +1

      Try making this model without scikit learn.
      Then you'll get the real taste of Machine learning

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

      @@binarysaiyan9389what’s the best practice with or without

  • @Ts18762
    @Ts18762 8 หลายเดือนก่อน +19

    Amazing- I really liked how casually you would think to add colors, trend line and straight away go and add a few lines to reflect in output. Shows how comfortable you’re- for a beginner like me- that was so instructive when you speak out your thoughts on the go.

  • @nikhilrajput2652
    @nikhilrajput2652 ปีที่แล้ว +8

    You literally give the brief on machine learning in a very simple and easy way

  • @shakirabdo638
    @shakirabdo638 5 หลายเดือนก่อน +5

    This is the clearest ML Tutorial I’ve ever watched ❤❤❤

  • @animelover5093
    @animelover5093 ปีที่แล้ว +14

    I didn't have any prior knowledge of Data Science or Machine Learning, but as a visual learner,
    I finally understand the purpose of the mathematical equation y = f(X).
    Initially, after watching a couple of videos and starting from a math tutorial, I was confused about the relevance of math in this field.
    But now I see its importance, and I am grateful for this new understanding.
    Thanks @DataProfessor

  • @ololololololoj5634
    @ololololololoj5634 9 หลายเดือนก่อน +5

    This video is amazing! You explain things so clearly, and the quality is excellent.

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

    After this tutorial, I can now start my ML Journey confidently. May God bless you Data Professor to continue doing this good work. Cheers

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

      Thanks for the kind words :)

  • @nironelokumannage1880
    @nironelokumannage1880 5 ชั่วโมงที่ผ่านมา

    This is the best machine learning tutorial that i've ever come across !❤
    Simple, Clean and Informative !
    Thank you sir ! 🙏

  • @ranahuzaifa147
    @ranahuzaifa147 9 หลายเดือนก่อน +2

    This was the easiest video on the ML model. Thanks Prof.

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

    You made the process very simple for us! Great Video! Keep up the good Work!

  • @mishanshah6827
    @mishanshah6827 10 หลายเดือนก่อน +12

    🐍This was my first video on ML and you made it really easy to follow through. I did this because I wanted to feel how it is like to do this , and I like it. I will definitely follow this through and study the actual maths behind it. Thank you for keeping me motivated.

  • @tikkki25
    @tikkki25 2 วันที่ผ่านมา +1

    You're a very good teacher. Taught a complex topic so simply

    • @DataProfessor
      @DataProfessor  วันที่ผ่านมา

      Thanks for the kind words 😊

  • @adhithas571
    @adhithas571 2 หลายเดือนก่อน

    One of the best beginner videos available on YT😍

  • @prashanthibandari8518
    @prashanthibandari8518 6 หลายเดือนก่อน +2

    Excellent video. You explained everything very simple. Which i learnt 1 month in classroom you just explained in few minutes. It is quick recap for me. Thank you..

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

    🐍 This was SO helpful. I feel like I had just been going through the motions in that process before, but you explained WHY each step is done. And I will definitely be using headings from now on to create that table of contents. Thanks, Data Professor, for another great video!

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

      Glad it was helpful! Yes, using headings and sub-headings helps my future self to skim through the code fairly quickly :)

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

    🐍Amazing depth covered in a short time-frame! Thank-you for compiling this introductory ML tutorial!

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

    Awesome as always.. I'm applying this to my QSAR dataset in a bit.. Thanks for churning out great n useful content as always.. You d bestest Data Professor.

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

      Glad it was helpful! And thanks for the kind words :)

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

    This is amazing Data Professor. Hope to see more of this stuff.

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

    🐍 Thanks for this. I appreciate you not just going straight into the core material, but talking about the organization with the headers.

  • @Skywalker954
    @Skywalker954 7 วันที่ผ่านมา

    Thanks a lot! Great tutorial, I love how you explain every step of it so it is easy to understand what you are doing.

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

    I usually don't spend time commenting on youtube, but dude this is a great video! Easy to follow alone, and very helpful. Thank you

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

      Glad to hear, I appreciate that!

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

    🐍 Your explanation was clear, concise, and appreciated! You are an amazing teacher who hits all the important points without adding any confusion. Thank you for your time in doing this!

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

      Wow, thank you for the kind words! Glad to hear that the video is helpful!

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

    The best ML tutorial i just watched. Hat's off for your work sir. I really enjoyed and explanations were really great. Thanks again. You earned a subscriber here. keep up the great work sir.

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

    The only video that I understood about ML. Thank you!

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

    🐍 great video, simple and direct approach, simple models, simple problem. It'd be nice to have more of those simple and direct videos with simple classification and clustering problems, just to get a grasp on them :D

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

      Great suggestion! More in the pipeline

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

      @@DataProfessor The "Titles" organization inside the notebook really helped to make it more fluid!

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

    this is literally the first machine learning that i have built
    looking to take it further
    Thanks for the tutorial
    🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍

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

    🐍 awesome video. This one was so much easier to follow along compared to other tutorials I have watch.

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

    Thank you so so much for this tutorial, your videos deserve much more views! Could you please also do a video explaining how to do k-cross validation as well as the methods to measure and compare the accuracy of ML models (confusion matrix, F1 score ect.)? Thank you so much for your videos I learn much more from you than my other profs at the university!

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

      Sure thing! Thanks for the suggestion. Also glad the videos are helpful :)

  • @yao_barna
    @yao_barna ปีที่แล้ว +8

    Hi! Great video. A quick question... when do we use linear regression as in statistics and when do we use it as a ML algorithm? Both try to find coefficients, both try to minimize the error (however it is defined) but I am still confused on what is the difference between the classical linear regression I learnt in basic algebra course and the ML procedure. Thanks!

  • @naboulsikhalid7763
    @naboulsikhalid7763 5 หลายเดือนก่อน +2

    before this video, Machine learning was sorcery and scary. Not anymore. Thank you for your neat and casual explanations that make me love the science and the math behind those functions. I am really looking forward to giving it a shot and learning more. thanks a lot. like and sub-earned

    • @DataProfessor
      @DataProfessor  5 หลายเดือนก่อน

      Glad to hear that this video was helpful!

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

    I really love this video very explicit and well thought !!❣❣

  • @the-basit-ali-com
    @the-basit-ali-com 2 หลายเดือนก่อน +2

    I have been spending the past 4 months trying to actually do something tangible but haven't found anything practical like this one
    Just took an hour and half I belive and I am done with my first mach ine learning modle
    This has enhanced my confience and now I am going to build more
    Thankf Professor

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

    The explanations are so easy to understand.

  • @_Wonder__
    @_Wonder__ ปีที่แล้ว +8

    This was awesome, thanks to your knowledge I feel I can have fun with experimenting with different algorithms and its parameters.🐍

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

    Best video I have find on youtube. Have you created playlists related to the AI, ML, NN 🤔

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

    TY you saved me for training our model for my Final Year Project

  • @thanirmalai
    @thanirmalai 5 หลายเดือนก่อน

    🐍Amazing intro to ml. It really felt easy to build my first ml model

  • @ChanceMinus
    @ChanceMinus 5 หลายเดือนก่อน +1

    Brilliant! Extremely helpful... Thank you!

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

    🐍 this video got me through a few projects. Thank you!

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

    Great video! I enjoyed a lot and learned a lot. Many thanks for that.

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

    Amazing tutorial! Thank you very much!!!

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

    🐍 Great content, please continue with your amazing effort. I have learnt so much from this video! Can you make more machine learning projects, I found this video super helpful!

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

    This is super. Thank you so much. Keep it up the good work...

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

    Thank you for the video. I learned alot. Recently, i am working on Speech recognition. Hopefully, I am gonna start building a model for it too.

  • @FrankieLaws
    @FrankieLaws 6 หลายเดือนก่อน

    Thank you, I love this video. I am new to ML.
    Very thorough in your thoughts and explanation.
    Question: What do you do with the prediction afterwards?

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

    🐍wow!!thanks...sticking around you definitely will get me throught my internship with flying colours!

  • @utkarshghildyal6876
    @utkarshghildyal6876 5 หลายเดือนก่อน

    🐍 Great way of explaining machine learning! Made it really easy to understand!

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

    WOW....very interesting and very helpful....Thank you

  • @horanj.1022
    @horanj.1022 5 หลายเดือนก่อน +1

    🐍
    Great video Data Professor!
    I really liked this tutorial because you didn't miss explaining terms you used without making any assumptions

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

    🐍THanks for such an excellent introduction to running ML models in python - so clearly explained and super helpful tips on working within notebooks!

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

    Very well explained. Now i know where to start and what to do....

  • @christopherramirez1843
    @christopherramirez1843 2 หลายเดือนก่อน

    Excellent video to help understand the basic behind training new models. Just one suggestion, I missed a little more explanation on how the different parameters of the training algorithm would affect the end result.

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

    🐍 thank you for the great tutorial of the building machine learning model.

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

    This is very informative, thanks!

  • @chaz8572
    @chaz8572 7 หลายเดือนก่อน

    Python really is a whole different beast.. Just to accomplish the task we used numpy, pandas, sklearn.model_selection, sklearn.linear_model, sklearn.metrics, sklearn.ensemble, and matplotlib.
    That's 7 libraries.. So overwhelming...
    Thanks for the guide. I did it locally within VSCode, so had to keep tweaking and installing libraries along the way, but it worked out well. The ML journey begins. Thanks for the training wheels!

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

    Great Tutoring from the Data Professor.

  • @FRAMEDSKATEKREW69
    @FRAMEDSKATEKREW69 6 หลายเดือนก่อน

    🐍
    Finally a simple video, although I had a book for all this I think the pacing was too slow to start me off.
    Now I am more interested in know why and how some of this code work and for what reason.
    This is my process on being able to really understand and process information for coding lol
    Thanks for the video!

  • @zuodei4408
    @zuodei4408 2 หลายเดือนก่อน

    🐍Thanks for this video. It will help me move forward in my final project in the university. Keep up the Good work. God bless you🙏.

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

    Great video ! After making the model can we deploy this to AWS? or do we need to reprogram in AWS again?

  • @jeffreyboadu4452
    @jeffreyboadu4452 5 หลายเดือนก่อน

    🐍Wow. This is my first time witnessing how models can be created. Great video as well.

  • @RiyazBashaRK
    @RiyazBashaRK 11 หลายเดือนก่อน +3

    Hi ! Can you please mention in one line what exactly we found at the end I see it shows linear regression but what exactly does it depicts?

  • @SuperPrasathkumar
    @SuperPrasathkumar 5 หลายเดือนก่อน +1

    Great start👌

  • @johnotolorin6775
    @johnotolorin6775 20 วันที่ผ่านมา

    good work; the presentation indeed helped

  • @rahulthewild
    @rahulthewild 9 หลายเดือนก่อน

    🐍 Love the video. Thank you so much! Wondering what should be my next step after this video?

  • @marinapaul__44
    @marinapaul__44 2 หลายเดือนก่อน

    Amazing explanation ,Thank you:)

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

    Very helpful, thank you!!!

  • @ajayf
    @ajayf 10 หลายเดือนก่อน +1

    🐍appreciate the video, very clear and informative

  • @sphithak1221
    @sphithak1221 2 หลายเดือนก่อน

    Thanks. Super helpful!

  • @negusuworku1871
    @negusuworku1871 2 หลายเดือนก่อน

    Thank you Prof. Very helpful

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

    amazing u have really helped me out

  • @user-vl4nl5nm3z
    @user-vl4nl5nm3z 5 หลายเดือนก่อน

    🐍
    I'm doing a classification model for my thesis and your video has been really useful, thank you so much for the content. Could you make a video explaining the feature extraction? it'd be really helpful. Thank you again I love your videos.

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

    This was really nice content i have been struggling from where to start for my project and this video has just given me the way thanks @Data professor😇😇😇

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

    already so much better than datascience 365 tutorials!

  • @ddjazz
    @ddjazz 6 หลายเดือนก่อน

    Great video , I thought the comparison at the end , would show the actual values from the testset vs the predicted values for the Y , could you explain the difference?

  • @karthikponna2487
    @karthikponna2487 9 หลายเดือนก่อน

    it was great learning from you thank you

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

    Great video man!

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

    Thank you so much. this is really helpful

  • @fnulnu5645
    @fnulnu5645 2 หลายเดือนก่อน

    Simply awesome.

  • @matt-young
    @matt-young 10 หลายเดือนก่อน

    🐍thank you! Really enjoyed the detailed steps and explanations.

  • @sonamsodani3272
    @sonamsodani3272 9 หลายเดือนก่อน +1

    🐍thank you for posting this tutorial. It is helpful and easy to follow. 👍

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

    Really thanks a lot. Its very much useful

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

    Great tutorial :D

  • @MohamedHamdy-pk3nm
    @MohamedHamdy-pk3nm ปีที่แล้ว +1

    Great job
    Thanks 🙏

  • @nithyathimmaraju
    @nithyathimmaraju 8 วันที่ผ่านมา

    I think you should also define why random forest is used, what is the difference between linear regression and random forest. Why max_deoth is set to 2, and all the other details because these elements are primarily important for anyone to understand what is actually being done.

  • @LordAngryGopnik
    @LordAngryGopnik 2 หลายเดือนก่อน

    Amazing tutorial!!!!

  • @12MissFairy24
    @12MissFairy24 หลายเดือนก่อน

    you are amazing! thank you so much!

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

    Hey! Great video!! I just have a problem : when I execute the Evaluate Model Performance part of the last model, it says that the name “y_rf_test_pred” isn’t defined, even though I did it the same as you. What should I do ??

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

    Great tutorial

  • @iiN1GH7M4R3ii
    @iiN1GH7M4R3ii 6 หลายเดือนก่อน

    really informative video, thanks for this! Now lets say you had a dataset containing text values like True or False or categorical reasons. How would you fit that into the sklearn training dataset?
    lr = LinearRegression()
    lr.fit(x_train, y_train)
    gives me: could not convert string to float: 'F'
    Any ideas?

  • @thandothemisunderstood
    @thandothemisunderstood 2 หลายเดือนก่อน

    So, if we have experimental data already trained and tested, does this mean we can predict the solubility of the new molecule yet to be synthesized?
    Thanks for simplifying it.

  • @metanulski
    @metanulski 9 หลายเดือนก่อน

    The part I did not unterstand was the evaluation. For example. In the end we got a Training MSE fo Liniar regression of 1.007. Is the good or bad? Is the 1.028 form Random forest a better or worst result.

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

    Thank you, very helpful

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

    I just had to subscribe to your channel. 👍

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

    🐍 I loved this. thanks so much.

  • @blessingajayi9457
    @blessingajayi9457 11 หลายเดือนก่อน +1

    Awesome 👏 thank you

  • @salehabdullahi9356
    @salehabdullahi9356 2 หลายเดือนก่อน

    Thanks for this awesome tutorial, in the video you gave the link to your article on building machine learning model. I tried to read but it is only available to medium members, please is there a way i can access it?
    thank you

  • @jamontfleming9194
    @jamontfleming9194 2 หลายเดือนก่อน

    🐍Very helpful video as I am starting my journey into training AI. Your instructions were very clear and easy to follow. Thanks for sharing!

  • @RabeccaMalika
    @RabeccaMalika 20 วันที่ผ่านมา

    Thanks for this video. I want to develop and train a Machine learning model that will be used to develop a robotic system in maize cultivation.

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

    🐍 awesome video!

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

    🐍 This is great video & so helpful to understanding machine learning. I Can follow your tutorial well. Thank you