Blog Post

Linear Regression for Machine Learning: an Example

In the previous lesson, we learned about linear regression in machine learning (ML). We understood the basic theory behind linear regression, and we got ready to implement linear regression in a real-life situation using Python in this lesson. We also used an algorithm called Gradient Descent which is an optimization algorithm to find the minimum of a function.

Linear Regression for Machine Learning_Gradient Descent Algorithm
Machine learning begins with the most straightforward and basic concept, linear regression in machine learning.

Please read the following lesson first if you are not familiar with linear regression in machine learning:

This lesson is about the linear regression machine learning example. We will use linear regression to solve a stereo vision depth estimation problem for an Autonomous underwater vehicle (AUV). We will also implement vectorization using Python.

linear regression for machine learning example
a stereo vision depth estimation problem for an AUV

You can download the Python code for this problem (lesson5-pycode) at the link below:

Watch the video version of the 5th lesson:

If you enjoyed this post, please consider contributing to help us with our mission to make robotics and mechatronics available for everyone. We deeply thank you for your generous contribution!

Do not forget to contact us:

Be sure to let us know your thoughts and questions about this post, as well as the other posts on the website. You can either contact us through the “Contact” tab on the website or email us at support[at]

Send us your work/ research on Robotics and Mechatronics to have a chance to get featured in Mecharithm’s Robotics News/ Learning:

Follow Mecharithm on the following social media too:

YouTube, and Instagram

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts