Machine Learning Tutorial Python - 4: Gradient Descent and Cost Function

Published: 21 July 2018
on channel: codebasics
817,464
11k

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

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

Populor Playlist:
Data Science Full Course:    • Data Science Full Course For Beginners | P...  

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

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

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

matplotlib:    • Matplotlib Tutorial 1 - Introduction and I...  

Python:    • Why Should You Learn Python? | Complete py...  

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


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


On this page of the site you can watch the video online Machine Learning Tutorial Python - 4: Gradient Descent and Cost Function with a duration of hours minute second in good quality, which was uploaded by the user codebasics 21 July 2018, share the link with friends and acquaintances, this video has already been watched 817,464 times on youtube and it was liked by 11 thousand viewers. Enjoy your viewing!