Machine Learning Tutorial Python - 2: Linear Regression Single Variable
codebasics codebasics
1.01M subscribers
1,002,907 views
0

 Published On Jul 1, 2018

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: https://github.com/codebasics/py/tree...

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

To download csv and code for all tutorials: go to https://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 https://codebasics.io/?utm_source=des... for my affordable video courses.

Next Video:
Machine Learning Tutorial Python - 3: Linear Regression Multiple Variables:    • Machine Learning Tutorial Python - 3:...  

Very Simple Explanation Of Neural Network:    • Neural Network Simply Explained | Dee...  

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

Populor Playlist:
Data Science Full Course:    • Data Science Full Course For Beginner...  

Data Science Project:    • Machine Learning & Data Science Proje...  

Machine learning tutorials:    • Machine Learning Tutorial Python -1: ...  

Pandas:    • Python Pandas Tutorial 1. What is Pan...  

matplotlib:    • Matplotlib Tutorial 1 - Introduction ...  

Python:    • Why Should You Learn Python? | Comple...  

Jupyter Notebook:    • What is Jupyter Notebook? | Jupyter N...  

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

🌎 My Website For Video Courses: https://codebasics.io/?utm_source=des...

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

#️⃣ Social Media #️⃣
🔗 Discord:   / discord  
📸 Dhaval's Personal Instagram:   / dhavalsays  
📸 Codebasics Instagram:   / codebasicshub  
🔊 Facebook:   / codebasicshub  
📱 Twitter:   / codebasicshub  
📝 Linkedin (Personal):   / dhavalsays  
📝 Linkedin (Codebasics):   / codebasics  
🔗 Patreon: https://www.patreon.com/codebasics?fa...

show more

Share/Embed