Build your first machine learning model in Python

  Переглядів 246,624

Data Professor

Data Professor

День тому

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 ukposts.info...
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

КОМЕНТАРІ: 284
@Ts18762
@Ts18762 8 місяців тому
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 Рік тому
You literally give the brief on machine learning in a very simple and easy way
@shakirabdo638
@shakirabdo638 5 місяців тому
This is the clearest ML Tutorial I’ve ever watched ❤❤❤
@ololololololoj5634
@ololololololoj5634 8 місяців тому
This video is amazing! You explain things so clearly, and the quality is excellent.
@brittanybutterworth7994
@brittanybutterworth7994 11 місяців тому
🐍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 місяці тому
Stop SIMPING dude.
@jaredheeralal2095
@jaredheeralal2095 2 місяці тому
​@@Samuel-ik5wp Stop hating
@binarysaiyan9389
@binarysaiyan9389 2 місяці тому
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
@animelover5093
@animelover5093 Рік тому
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
@ranahuzaifa147
@ranahuzaifa147 8 місяців тому
This was the easiest video on the ML model. Thanks Prof.
@ragus1416
@ragus1416 Рік тому
You made the process very simple for us! Great Video! Keep up the good Work!
@bassmonkey70
@bassmonkey70 Рік тому
🐍Amazing depth covered in a short time-frame! Thank-you for compiling this introductory ML tutorial!
@dsnewton7089
@dsnewton7089 Рік тому
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 Рік тому
Thanks for the kind words :)
@ranjandeep
@ranjandeep Рік тому
This is amazing Data Professor. Hope to see more of this stuff.
@prashanthibandari8518
@prashanthibandari8518 5 місяців тому
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 Рік тому
🐍 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 Рік тому
Glad it was helpful! Yes, using headings and sub-headings helps my future self to skim through the code fairly quickly :)
@mishanshah6827
@mishanshah6827 9 місяців тому
🐍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.
@MrIbadanBoy
@MrIbadanBoy Рік тому
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 Рік тому
Glad it was helpful! And thanks for the kind words :)
@sumit5210
@sumit5210 Місяць тому
The only video that I understood about ML. Thank you!
@andrewdorsey7411
@andrewdorsey7411 8 місяців тому
🐍 Thanks for this. I appreciate you not just going straight into the core material, but talking about the organization with the headers.
@adhithas571
@adhithas571 Місяць тому
One of the best beginner videos available on YT😍
@zegiyt4069
@zegiyt4069 Рік тому
TY you saved me for training our model for my Final Year Project
@yao_barna
@yao_barna Рік тому
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!
@teresanicholls8531
@teresanicholls8531 Рік тому
🐍 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!
@_Wonder__
@_Wonder__ Рік тому
This was awesome, thanks to your knowledge I feel I can have fun with experimenting with different algorithms and its parameters.🐍
@trendsandmore911
@trendsandmore911 Рік тому
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!
@mattlitchfield3776
@mattlitchfield3776 Рік тому
🐍 awesome video. This one was so much easier to follow along compared to other tutorials I have watch.
@DataProfessor
@DataProfessor Рік тому
Glad it was helpful!
@AdamC3434
@AdamC3434 7 місяців тому
🐍 this video got me through a few projects. Thank you!
@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?
@aashiqumr
@aashiqumr Рік тому
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.
@DataProfessor
@DataProfessor Рік тому
You're very welcome!
@forestsunrise26
@forestsunrise26 Рік тому
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 :)
@ChanceMinus
@ChanceMinus 5 місяців тому
Brilliant! Extremely helpful... Thank you!
@sharonrosekhokhololo5304
@sharonrosekhokhololo5304 2 місяці тому
The explanations are so easy to understand.
@chinonsomartins7308
@chinonsomartins7308 Рік тому
I really love this video very explicit and well thought !!❣❣
@Idontknowcode512
@Idontknowcode512 11 місяців тому
Best video I have find on youtube. Have you created playlists related to the AI, ML, NN 🤔
@AzureCz
@AzureCz Рік тому
🐍 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 Рік тому
Great suggestion! More in the pipeline
@AzureCz
@AzureCz Рік тому
@@DataProfessor The "Titles" organization inside the notebook really helped to make it more fluid!
@HerozTech
@HerozTech Рік тому
this is literally the first machine learning that i have built looking to take it further Thanks for the tutorial 🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍
@schimidt99
@schimidt99 Рік тому
Amazing tutorial! Thank you very much!!!
@matijaxzivkovic8843
@matijaxzivkovic8843 Рік тому
Great video! I enjoyed a lot and learned a lot. Many thanks for that.
@vinnythapz1860
@vinnythapz1860 26 днів тому
🐍wow!!thanks...sticking around you definitely will get me throught my internship with flying colours!
@naboulsikhalid7763
@naboulsikhalid7763 5 місяців тому
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!
@negusuworku1871
@negusuworku1871 Рік тому
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.
@thanirmalai
@thanirmalai 5 місяців тому
🐍Amazing intro to ml. It really felt easy to build my first ml model
@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🙏.
@karthikponna2487
@karthikponna2487 9 місяців тому
it was great learning from you thank you
@altangerelbayarsaikhan6386
@altangerelbayarsaikhan6386 Місяць тому
🐍 thank you for the great tutorial of the building machine learning model.
@matt-young
@matt-young 9 місяців тому
🐍thank you! Really enjoyed the detailed steps and explanations.
@JonOxtoby
@JonOxtoby Місяць тому
🐍THanks for such an excellent introduction to running ML models in python - so clearly explained and super helpful tips on working within notebooks!
@rahulthewild
@rahulthewild 9 місяців тому
🐍 Love the video. Thank you so much! Wondering what should be my next step after this video?
@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!
@the-basit-ali-com
@the-basit-ali-com 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
@stackflow4007
@stackflow4007 17 днів тому
Great video ! After making the model can we deploy this to AWS? or do we need to reprogram in AWS again?
@janrehman9536
@janrehman9536 Рік тому
🐍 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!
@pencillab6476
@pencillab6476 Рік тому
Very well explained. Now i know where to start and what to do....
@vichhaiyserey
@vichhaiyserey Рік тому
This is very informative, thanks!
@negusuworku1871
@negusuworku1871 2 місяці тому
Thank you Prof. Very helpful
@sphithak1221
@sphithak1221 2 місяці тому
Thanks. Super helpful!
@gregz3040
@gregz3040 Місяць тому
Very helpful, thank you!!!
@horanj.1022
@horanj.1022 5 місяців тому
🐍 Great video Data Professor! I really liked this tutorial because you didn't miss explaining terms you used without making any assumptions
@DataProfessor
@DataProfessor 5 місяців тому
Thanks! 😃
@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.
@negusuworku2375
@negusuworku2375 Рік тому
WOW....very interesting and very helpful....Thank you
@kasiviswanathanmadurai
@kasiviswanathanmadurai 8 місяців тому
Really thanks a lot. Its very much useful
@utkarshghildyal6876
@utkarshghildyal6876 4 місяці тому
🐍 Great way of explaining machine learning! Made it really easy to understand!
@MichaelKigo
@MichaelKigo 2 місяці тому
amazing u have really helped me out
@ikechukwuewuzie3836
@ikechukwuewuzie3836 Рік тому
Great Tutoring from the Data Professor.
@DataProfessor
@DataProfessor Рік тому
Glad you think so!
@Jordan-yt3ze
@Jordan-yt3ze 8 місяців тому
Is there a way to export the data into a new csv with the model results included
@LalBharat
@LalBharat Рік тому
Thank you so much. this is really helpful
@marinapaul__44
@marinapaul__44 Місяць тому
Amazing explanation ,Thank you:)
@RiyazBashaRK
@RiyazBashaRK 11 місяців тому
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?
@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.
@fnulnu5645
@fnulnu5645 2 місяці тому
Simply awesome.
@johnotolorin6775
@johnotolorin6775 7 днів тому
good work; the presentation indeed helped
@sonamsodani3272
@sonamsodani3272 8 місяців тому
🐍thank you for posting this tutorial. It is helpful and easy to follow. 👍
@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.
@FRAMEDSKATEKREW69
@FRAMEDSKATEKREW69 5 місяців тому
🐍 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!
@ajayf
@ajayf 10 місяців тому
🐍appreciate the video, very clear and informative
@12MissFairy24
@12MissFairy24 20 днів тому
you are amazing! thank you so much!
@ShrikrishnagopalSharma
@ShrikrishnagopalSharma Рік тому
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😇😇😇
@DataProfessor
@DataProfessor Рік тому
Glad it was helpful!
@RabeccaMalika
@RabeccaMalika 8 днів тому
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.
@AyunZoom
@AyunZoom Рік тому
Thank you, very helpful
@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?
@LordAngryGopnik
@LordAngryGopnik 2 місяці тому
Amazing tutorial!!!!
@FiftyFiveCreams
@FiftyFiveCreams 10 місяців тому
Great video man!
@MohamedHamdy-pk3nm
@MohamedHamdy-pk3nm Рік тому
Great job Thanks 🙏
@SuperPrasathkumar
@SuperPrasathkumar 5 місяців тому
Great start👌
@jeffreyboadu4452
@jeffreyboadu4452 5 місяців тому
🐍Wow. This is my first time witnessing how models can be created. Great video as well.
@hamadkhanofficial2298
@hamadkhanofficial2298 8 місяців тому
Great ❤video for me really helpful ❤
@ShiftKoncepts
@ShiftKoncepts 3 місяці тому
already so much better than datascience 365 tutorials!
@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.
@faizabenatmane5485
@faizabenatmane5485 Рік тому
thank you so much really!
@blessingajayi9457
@blessingajayi9457 11 місяців тому
Awesome 👏 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!
@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
@hassanrashed6329
@hassanrashed6329 Місяць тому
Great tutorial
@jernejkrumpestar5765
@jernejkrumpestar5765 Рік тому
Great tutorial :D
@FrocketGaming
@FrocketGaming 11 місяців тому
How would you go about determining how accurate your model is against the test dataset?
@natedaub
@natedaub Рік тому
🐍 I loved this. thanks so much.
@limotto9452
@limotto9452 20 днів тому
🐍 Thank you for your guided tutorial
@vincent8018
@vincent8018 25 днів тому
Good job. Thank you for putting this online 🐍
@RobieHakim
@RobieHakim Рік тому
🐍 This is great video & so helpful to understanding machine learning. I Can follow your tutorial well. Thank you
@anythingfun8567
@anythingfun8567 Рік тому
thank you very much
@DJPapzin
@DJPapzin 4 місяці тому
🎯 Key Takeaways for quick navigation: 00:00 📋 *Introduction to Building Your First Machine Learning Model in Python* - Overview of building a machine learning model in Python using scikit-learn and Google Colab. - Naming conventions and organizing Jupyter Notebooks. 01:12 📊 *Loading and Exploring the Dataset* - Introduction to the delani dataset, which contains information about molecule solubility. - Explanation of comma-separated values (CSV) format and dataset columns. 05:11 📦 *Data Preparation: Splitting Data into Features (X) and Target (Y)* - How to separate the dataset into features (X) and the target variable (Y). - Explanation of the training set and testing set split. 09:22 ⚙️ *Building a Linear Regression Model* - Importing the Linear Regression model from scikit-learn. - Training the model on the training dataset. 13:18 🧪 *Model Evaluation: Mean Squared Error and R-squared* - Calculating Mean Squared Error (MSE) and R-squared for both training and testing sets. - Organizing and presenting the results in a Pandas DataFrame. 22:13 🌲 *Building a Random Forest Regressor Model* - Introduction to using the Random Forest Regressor model. - Organizing notebook sections and headings for clarity in the notebook structure. 23:47 📊 *Building Regression Models* - Explains the distinction between regression and classification models based on the nature of the target variable. - Demonstrates how to create a random forest regressor with specified parameters. - Covers the training process of the regression model. 25:01 📈 *Model Performance Evaluation* - Discusses using mean squared error and R2 score for evaluating model performance. - Shows how to apply these metrics to the random forest regression model. - Emphasizes being cautious about typos in code. 26:08 🧷 *Combining Model Results* - Explains the process of combining the results of linear regression and random forest regression models. - Demonstrates how to concatenate the results into a single DataFrame. - Provides tips on reindexing and organizing the combined data. 28:03 📊 *Data Visualization of Prediction Results* - Introduces data visualization using matplotlib for comparing predicted and actual values. - Guides in creating a scatter plot with labeled axes. - Adds a trendline to the plot using numpy's polyfit function. 29:56 🎉 *Conclusion and Further Exploration* - Summarizes the process of building a machine learning model in Python using scikit-learn. - Encourages viewers to explore different models, tweak learning parameters, and refer to scikit-learn's documentation. - Requests viewers to share their model-building experiences in the comments. Made with HARPA AI
@Hayman-
@Hayman- 4 місяці тому
“ Underrated comment “ -every bot comment ever (But still a good comment with no likes)
How to come up with Data Science projects - From Ideas to Implementation
16:17
Python Machine Learning Tutorial (Data Science)
49:43
Programming with Mosh
Переглядів 2,7 млн
маленький брат прыгает в бассейн
00:15
GL Show Russian
Переглядів 3,3 млн
Історія загиблого Назара Небожинського
00:54
Суспільне Рівне
Переглядів 865 тис.
How to Build an LLM from Scratch | An Overview
35:45
Shaw Talebi
Переглядів 168 тис.
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Переглядів 133 тис.
Predict The Stock Market With Machine Learning And Python
35:55
Dataquest
Переглядів 600 тис.
How I'd Learn AI in 2024 (if I could start over)
17:55
Dave Ebbelaar
Переглядів 715 тис.
The Most Important Algorithm in Machine Learning
40:08
Artem Kirsanov
Переглядів 177 тис.
Best OS for programming? Mac vs Windows vs Linux debate settled
8:41
But what is a neural network? | Chapter 1, Deep learning
18:40
3Blue1Brown
Переглядів 16 млн
Вы поможете украсть ваш iPhone
0:56
Romancev768
Переглядів 222 тис.
Why spend $10.000 on a flashlight when these are $200🗿
0:12
NIGHTOPERATOR
Переглядів 17 млн
🤯Самая КРУТАЯ Функция #shorts
0:58
YOLODROID
Переглядів 3,1 млн