Machine Learning Tutorial Python - 4: Gradient Descent and Cost Function
codebasics codebasics
1.01M subscribers
610,031 views
0

 Published On Jul 21, 2018

In this tutorial, we are covering few important concepts in machine learning such as cost function, gradient descent, learning rate and mean squared error. We will use home price prediction use case to understand gradient descent. After going over math behind these concepts, we will write python code to implement gradient descent for linear regression in python. At the end I've an an exercise for you to practice gradient descent

#MachineLearning #PythonMachineLearning #MachineLearningTutorial #Python #PythonTutorial #PythonTraining #MachineLearningCource #CostFunction #GradientDescent

Code: https://github.com/codebasics/py/blob...
Exercise csv file: https://github.com/codebasics/py/blob...

Topics that are covered in this Video:
0:00 Overview
1:23 - What is prediction function? How can we calculate it?
4:00 - Mean squared error (ending time)
4:57 - Gradient descent algorithm and how it works?
11:00 - What is derivative?
12:30 - What is partial derivative?
16:07 - Use of python code to implement gradient descent
27:05 - Exercise is to come up with a linear function for given test results using gradient descent

Topic Highlights:
1) Theory (We will talk about MSE, cost function, global minima)
2) Coding - (Plain python code that finds out a linear equation for given sample data points using gradient descent)
3) Exercise - (Exercise is to come up with a linear function for given test results using gradient descent)

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 - 5: Save Model Using Joblib And Pickle:    • Machine Learning Tutorial Python - 5:...  

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

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


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.

🌎 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