This commit is contained in:
Max 2021-01-05 15:28:38 +00:00
parent 858fbd8975
commit 4f862686ef

View File

@ -44,7 +44,7 @@ class VirtualProbe:
def predict_soil_temp(self):
feature = self.firebase.get_feature()
predicted_temp = self.model.predict([feature])[0][0]
predicted_temp = float(self.model.predict([feature])[0][0])
logging.debug(f'Predicted temp: {predicted_temp}')
return predicted_temp