Koaris commited on
Commit
6f86e87
·
verified ·
1 Parent(s): df5f958

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def predict_price(date: datetime ,room_count: int, address:str, surface: float ,
44
  print(rf_input)
45
  rf_pred = np.exp(rf.predict(rf_input)[0])
46
  predictions_all = np.array([tree.predict(rf_input) for tree in rf.estimators_])
47
- std_predict = np.sqrt(np.var((predictions_all)))
48
  reliability_index = compute_reliability(std_predict)
49
  q1 = np.exp(np.quantile(predictions_all, 0.25))
50
  q2 = np.exp(np.quantile(predictions_all, 0.5))
 
44
  print(rf_input)
45
  rf_pred = np.exp(rf.predict(rf_input)[0])
46
  predictions_all = np.array([tree.predict(rf_input) for tree in rf.estimators_])
47
+ std_predict = np.std((predictions_all))
48
  reliability_index = compute_reliability(std_predict)
49
  q1 = np.exp(np.quantile(predictions_all, 0.25))
50
  q2 = np.exp(np.quantile(predictions_all, 0.5))