diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-01-23 19:11:47 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-01-23 19:11:47 +0100 |
| commit | 8902768c980aec4d2c0ae63cecfb5de24bb573f6 (patch) | |
| tree | 6989d0b2a10e3b032a4e88ac1ae2c210f75b8f2c /src/predict.py | |
| parent | b21e6642c591962974212be2dbc965793df6bd06 (diff) | |
| download | ft_linear_regression-8902768c980aec4d2c0ae63cecfb5de24bb573f6.tar.gz ft_linear_regression-8902768c980aec4d2c0ae63cecfb5de24bb573f6.tar.bz2 ft_linear_regression-8902768c980aec4d2c0ae63cecfb5de24bb573f6.zip | |
Normalized x prediction to actualy predict something
Diffstat (limited to 'src/predict.py')
| -rwxr-xr-x[-rw-r--r--] | src/predict.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/predict.py b/src/predict.py index 329382a..2257109 100644..100755 --- a/src/predict.py +++ b/src/predict.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3.7 + from model import Model def predict_input(m): @@ -8,7 +10,7 @@ def predict_input(m): print("Bad input, you should enter a number") else: break - print("The predicted price for this mileage is", m.hypothesis(x)) + print("The predicted price for this mileage is", m.make_prediction(x)) if __name__ == "__main__": m = Model(thetafilename="./theta") |
