From 8902768c980aec4d2c0ae63cecfb5de24bb573f6 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 23 Jan 2020 19:11:47 +0100 Subject: Normalized x prediction to actualy predict something --- src/predict.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 src/predict.py (limited to 'src/predict.py') diff --git a/src/predict.py b/src/predict.py old mode 100644 new mode 100755 index 329382a..2257109 --- 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") -- cgit