This commit is contained in:
Max 2021-01-05 15:25:41 +00:00
parent f543e217af
commit 858fbd8975

View File

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