Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 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))
|