aboutsummaryrefslogtreecommitdiff
path: root/src/predict.py
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-23 19:11:47 +0100
committerCharles <sircharlesaze@gmail.com>2020-01-23 19:11:47 +0100
commit8902768c980aec4d2c0ae63cecfb5de24bb573f6 (patch)
tree6989d0b2a10e3b032a4e88ac1ae2c210f75b8f2c /src/predict.py
parentb21e6642c591962974212be2dbc965793df6bd06 (diff)
downloadft_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.py4
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")