Goal: Teach the model to learn the linear function:
Formula: y = 2x + 1
We are training the model with the following data:
The model starts with random weights and biases and learns to approximate the function using gradient descent.
Train a linear regression model and make predictions:
Enter a value to predict the output: