diff options
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") |
