Linear Regression with TensorFlow from Scratch
Belal Aboelkher
Machine Learning Nerd |Computer vision and Machine learning Engineer | ROS | Robotics
A Linear Regression model’s main aim is to find the best fit linear line and the optimal values of intercept and coefficients such that the error is minimized.
Tensor flow Versions and Differences:
Steps of creating any machine or deep learning model:
1-Data gathering and importing it in your model
2-Preprocessing your data, cleaning it, extracting new features, normalize
3-Train your model and get your weights
4- Test your model by your unseen data
5- validate it
Loading the data
DataFrame:
领英推荐
Linear regression Steps:
Hypothes
Loss function:
By achieving the best-fit regression line, the model aims to predict they value such that the error difference between the predicted value and the true value is minimum. So, it is very important to update the θ1?and θ2?values, to reach the best value that minimizes the error between the predicted y value (pred) and the true y value (y).
Optimizers:
Visualize the losses:
Visualize all fitted Line:
Thank You
GM @ NeuroTech | Leading Artificial Intelligence Solutions
3 年Thanks belal,keep going ??????
Technology development engineer
3 年??????