Learn How to Build a Linear Regression Model in Python with scikit-learn 📊
Discover step-by-step how to create a linear regression model in Python using scikit-learn, with practical examples using the Diabetes dataset. Perfect for beginners looking to master machine learning basics!

Data Professor
181.9K views • Apr 2, 2020

About this video
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
🌟 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
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
181.9K
Likes
3.1K
Duration
17:46
Published
Apr 2, 2020
User Reviews
4.7
(36) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.