Model Pipeline - Linear regression concept
Linear regression is a simple way to find a straight line that best fits data points. It helps predict a number based on one or more input numbers.
Linear regression is a simple way to find a straight line that best fits data points. It helps predict a number based on one or more input numbers.
Loss
12000 |*
8000 | **
5000 | ***
3000 | ***
1500 | **
--------
Epochs| Epoch | Loss ↓ | Accuracy ↑ | Observation |
|---|---|---|---|
| 1 | 12000.0 | N/A | Initial loss is high because model is random |
| 2 | 8000.0 | N/A | Loss decreases as model learns slope and intercept |
| 3 | 5000.0 | N/A | Model fits data better, error reduces |
| 4 | 3000.0 | N/A | Loss continues to decrease steadily |
| 5 | 1500.0 | N/A | Model converges to best fit line |
y = 2x + 3, what is the predicted value when x = 4?def predict(x):
return 2 * x +
print(predict(5))Pass the test and this pattern moves unknown