Machine Learning in Python: Building a Linear Regression Model
[ad_1]
In this video, I will be showing you how to build a linear regression model in Python using the scikit-learn package. We will be using the Diabetes dataset (built-in data from scikit-learn) and the Boston Housing (download from GitHub) dataset.
π Buy me a coffee: https://www.buymeacoffee.com/dataprofessor
πCODE: https://github.com/dataprofessor/code/blob/master/python/linear_regression.ipynb
β Playlist:
Check out our other videos in the following playlists.
β
Data Science 101: https://bit.ly/dataprofessor-ds101
β
Data Science YouTuber Podcast: https://bit.ly/datascience-youtuber-podcast
β
Data Science Virtual Internship: https://bit.ly/dataprofessor-internship
β
Bioinformatics: http://bit.ly/dataprofessor-bioinformatics
β
Data Science Toolbox: https://bit.ly/dataprofessor-datasciencetoolbox
β
Streamlit (Web App in Python): https://bit.ly/dataprofessor-streamlit
β
Shiny (Web App in R): https://bit.ly/dataprofessor-shiny
β
Google Colab Tips and Tricks: https://bit.ly/dataprofessor-google-colab
β
Pandas Tips and Tricks: https://bit.ly/dataprofessor-pandas
β
Python Data Science Project: https://bit.ly/dataprofessor-python-ds
β
R Data Science Project: https://bit.ly/dataprofessor-r-ds
β Subscribe:
If you’re new here, it would mean the world to me if you would consider subscribing to this channel.
β
Subscribe: https://www.youtube.com/dataprofessor?sub_confirmation=1
β Recommended Tools:
Kite is a FREE AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while youβre typing. I’ve been using Kite and I love it!
β
Check out Kite: https://www.kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=dataprofessor&utm_content=description-only
β Recommended Books:
β
Hands-On Machine Learning with Scikit-Learn : https://amzn.to/3hTKuTt
β
Data Science from Scratch : https://amzn.to/3fO0JiZ
β
Python Data Science Handbook : https://amzn.to/37Tvf8n
β
R for Data Science : https://amzn.to/2YCPcgW
β
Artificial Intelligence: The Insights You Need from Harvard Business Review: https://amzn.to/33jTdcv
β
AI Superpowers: China, Silicon Valley, and the New World Order: https://amzn.to/3nghGrd
β Stock photos, graphics and videos used on this channel:
β
https://1.envato.market/c/2346717/628379/4662
β Follow us:
β
Medium: http://bit.ly/chanin-medium
β
FaceBook: http://facebook.com/dataprofessor/
β
Website: http://dataprofessor.org/ (Under construction)
β
Twitter: https://twitter.com/thedataprof/
β
Instagram: https://www.instagram.com/data.professor/
β
LinkedIn: https://www.linkedin.com/in/chanin-nantasenamat/
β
GitHub 1: https://github.com/dataprofessor/
β
GitHub 2: https://github.com/chaninlab/
β 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.
#dataprofessor #regression #linearregression #scikit #scikitlearn #sklearn #prediction #jupyternotebook #jupyter #googlecolab #colaboratory #notebook #machinelearning #datascienceproject #randomforest #decisiontree #svm #neuralnet #neuralnetwork #supportvectormachine #python #learnpython #pythonprogramming #datascience #datamining #bigdata #datascienceworkshop #dataminingworkshop #dataminingtutorial #datasciencetutorial #ai #artificialintelligence #tutorial #dataanalytics #dataanalysis #machinelearningmodel
Source
[ad_2]
Hi Professor, I followed the exact same steps as you, but my coef and intercept are different, do you know why? By the way, great presentation.
This is exactly what I was looking for, thank you so much this was such a big help!!!
Fantastic video, thank you.
Nice video, but how do we interpret the results? IOW, what would be the deliverable to our stakeholders? What are the actual predictions?
8:29 is the coefficient the same as the weight?
You are the best professor for explaining , thanks for your content!
Wonderful presentation! Though Im struggling a bit with the loss function and the training/iteration principle. How does this work exactly?
For your first example using the diabetes dataset, I would like to train the data/iterate the data 1000 times, and thereby plot the loss function over a 2-dimensional grid at every 100, 300, 700 and 1000 iteration. How exactly would you do this? Thank you!
hi prof, may I ask ,last stage of scatterplot for boston house model , so x axis is represent the y_test value and y_axis is represent the y_pred value? How do i evaluate from the scatterplot. Could you explain more on plt representation. thank u sir!
I am lazy to comment usally, but this video is very delicious . Keep up with the good work , just subscribed.
Thank you, sir, for making this so easy π
#HappyLearning
Beautiful presentation. Thank you sir.
Where is the line best fit? How to draw a line best fit on the scatter plot graph?
What is the purpose of the train test split function?
7:25 MAE and others
every video you have posted provides value to the audience. Outstanding job. I hope your channel could grow exponentially, as it is deserved.
Hello DataProfessor. I am a beginner in ML and have learned some basic concepts of linear/logistic regression, SVM, ANN, Recommendation systems, Anomaly Detection from ML course by Andrew NG on Coursera. I am looking for some good walkthrough videos like these for picking up libraries like sklearn, tensorflow, etc. Do you have a set of videos that could help me?
P.S – The walkthrough was amazing. thanks for the content.
Glad to have more of your video to watch than usual π
So excellent. Thank you so much
If you find value in this video, please give it a Like πand Subscribe β€οΈif you would like to see more Data Science videos.
nice!