Model Pipeline - Multiple linear regression
This pipeline uses multiple linear regression to predict a number based on several input features. It learns how each feature affects the result by finding the best straight-line fit through the data.
This pipeline uses multiple linear regression to predict a number based on several input features. It learns how each feature affects the result by finding the best straight-line fit through the data.
Loss | |*************** |************ |******** |***** |*** |__|__|__|__|__ 1 2 3 4 5 Epochs
| Epoch | Loss ↓ | Accuracy ↑ | Observation |
|---|---|---|---|
| 1 | 12000000000 | N/A | Initial large error before fitting |
| 2 | 8000000000 | N/A | Loss decreased as model starts fitting |
| 3 | 5000000000 | N/A | Loss continues to decrease steadily |
| 4 | 3000000000 | N/A | Model improving fit to data |
| 5 | 1500000000 | N/A | Loss much lower, model converging |
y = w0 + w1*x1 + w2*x2 + ... + wn*xn matches the correct formula with addition and multiplication.def predict(x1, x2, w0, w1, w2):
return w0 + w1 * x1 + w2 + x2
print(predict(3, 4, 1, 2, 3))Pass the test and this pattern moves unknown