Machine Learning Tutorial Python 2 Linear Regression Single Variable

In this tutorial we will predict home prices using linear regression. We use training data that has home areas in square feet and corresponding prices and train a linear regression model using sklearn linear regression class. Later on predict method is used on linear regression object to make actual forecast.

Exercise CSV file is here: github.com/codebasics/py/tree/master/ML/1_linear_reg/Exercise

Code in this tutorial is here: github.com/codebasics/py/tree/master/ML/1_linear_reg (check the .ipynb file)

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.

#MachineLearning #PythonMachineLearning #MachineLearningTutorial #Python #PythonTutorial #PythonTraining #MachineLearningCource #LinearRegression #sklearntutorials #scikitlearntutorials

Topics that are covered in this Machine Learning Video:
0:00 Simple linear regression
1:59 Linear equation
2:22 Import data in dataframe
2:43 Import sklearn library
3:52 Plot scatter plot
5:26 Create Linear Regression object
13:35 Exercise at the end to predict canada's per capita income

Topic Highlights:
1) What is linear regression
2) Mean squared error
3) Predict home prices by minimizing mean squared error (or MSE)
4) Exercise at the end to predict canada's per capita income

Do you want to learn technology from me? Check codebasics.io/?utm_source=description&utm_medium=yt&utm_campaign=description&utm_id=description for my affordable video courses.

Next Video:
Machine Learning Tutorial Python - 3: Linear Regression Multiple Variables: youtube.com/watch?v=J_LnPL3Qg70&list=PLeo1K3hjS3uvCeTYTeyfe0-rN5r8zn9rw&index=3

Very Simple Explanation Of Neural Network: youtube.com/watch?v=ER2It2mIagI

Code: github.com/codebasics/py/tree/master/ML/1_linear_reg
Correction: at 6:53, use reg.predict([[3300]]) instead of reg.predict(3300) as api specification has changed.
Exercise solution: github.com/codebasics/py/blob/master/ML/1_linear_reg/1_linear_regression.ipynb

Populor Playlist:
Data Science Full Course: youtube.com/playlist?list=PLeo1K3hjS3us_ELKYSj_Fth2tIEkdKXvV

Data Science Project: youtube.com/watch?v=rdfbcdP75KI&list=PLeo1K3hjS3uu7clOTtwsp94PcHbzqpAdg

Machine learning tutorials: youtube.com/watch?v=gmvvaobm7eQ&list=PLeo1K3hjS3uvCeTYTeyfe0-rN5r8zn9rw

Pandas: youtube.com/watch?v=CmorAWRsCAw&list=PLeo1K3hjS3uuASpe-1LjfG5f14Bnozjwy

matplotlib: youtube.com/watch?v=qqwf4Vuj8oM&list=PLeo1K3hjS3uu4Lr8_kro2AqaO6CFYgKOl

Python: youtube.com/watch?v=eykoKxsYtow&list=PLeo1K3hjS3uv5U-Lmlnucd7gqF-3ehIh0&index=1

Jupyter Notebook: youtube.com/watch?v=q_BzsPxwLOE&list=PLeo1K3hjS3uuZPwzACannnFSn9qHn8to8

Tools and Libraries:
Scikit learn tutorials
Sklearn tutorials
Machine learning with scikit learn tutorials
Machine learning with sklearn tutorials

🌎 My Website For Video Courses: codebasics.io/?utm_source=description&utm_medium=yt&utm_campaign=description&utm_id=description

Need help building software or data analytics and AI solutions? My company atliq.com/ can help. Click on the Contact button on that website.

#️⃣ Social Media #️⃣
🔗 Discord: discord.gg/r42Kbuk
📸 Dhaval's Personal Instagram: instagram.com/dhavalsays/
📸 Codebasics Instagram: instagram.com/codebasicshub/
🔊 Facebook: facebook.com/codebasicshub
📱 Twitter: twitter.com/codebasicshub
📝 Linkedin (Personal): linkedin.com/in/dhavalsays/
📝 Linkedin (Codebasics): linkedin.com/company/codebasics/
🔗 Patreon: patreon.com/codebasics?fan_landing=true

  • Machine Learning Tutorial Python - 2: Linear Regression Single Variable ( Download)
  • Machine Learning Tutorial Python 2 Linear Regression Single Variable ( Download)
  • Linear Regression in 2 minutes ( Download)
  • Simple Linear Regression in Python - sklearn ( Download)
  • Linear Regression Analysis | Linear Regression in Python | Machine Learning Algorithms | Simplilearn ( Download)
  • Machine Learning in Python: Building a Linear Regression Model ( Download)
  • Linear Regression with Python in 60 Seconds #shorts ( Download)
  • Linear Regression From Scratch in Python (Mathematical) ( Download)
  • Intro to ML in Julia | J̶u̶p̶y̶t̶e̶r̶ Pluto Notebooks: A Fresh Approach to Computing ( Download)
  • Machine Learning Using Python: Linear Regression Single Variable, Lesson 2 ( Download)
  • Machine Learning Tutorial Python - 2: Linear Regression Single Variable In Hindi with notes ( Download)
  • Python Machine Learning Tutorial #2 - Linear Regression p.1 ( Download)
  • 1. Machine Learning with Python || Simple Linear Regression || Linear Regression Single Variable ( Download)
  • How to implement Linear Regression from scratch with Python ( Download)
  • Machine Learning in Python | Linear Regression | Part 2 | Linear Regression Model with One Variable ( Download)