Update
This commit is contained in:
parent
f543e217af
commit
858fbd8975
@ -44,8 +44,8 @@ class VirtualProbe:
|
|||||||
|
|
||||||
def predict_soil_temp(self):
|
def predict_soil_temp(self):
|
||||||
feature = self.firebase.get_feature()
|
feature = self.firebase.get_feature()
|
||||||
predicted_temp = self.model.predict([feature])
|
predicted_temp = self.model.predict([feature])[0][0]
|
||||||
logging.debug(f'Predicted watering volume: {predicted_temp}')
|
logging.debug(f'Predicted temp: {predicted_temp}')
|
||||||
return predicted_temp
|
return predicted_temp
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user