Spaces:
Sleeping
Sleeping
fschwartzer
commited on
Commit
•
9e35f08
1
Parent(s):
0dfcdf4
Update app.py
Browse files
app.py
CHANGED
@@ -265,11 +265,9 @@ predicted_target = knn_predict(filtered_data, 'Predicted_target', ['latitude', '
|
|
265 |
|
266 |
# Check if there are predictions to display
|
267 |
if 'Predicted_target' in filtered_data.columns and not np.all(predicted_target == 0):
|
268 |
-
# Add predicted Predicted_target values to filtered_data
|
269 |
-
filtered_data['target_column'] = bound_data
|
270 |
|
271 |
-
# Apply bootstrap
|
272 |
-
lower_bound, higher_bound = bootstrap_stats(
|
273 |
|
274 |
mean_value = np.mean(filtered_data['Predicted_target'])
|
275 |
|
|
|
265 |
|
266 |
# Check if there are predictions to display
|
267 |
if 'Predicted_target' in filtered_data.columns and not np.all(predicted_target == 0):
|
|
|
|
|
268 |
|
269 |
+
# Apply bootstrap - bounds
|
270 |
+
lower_bound, higher_bound = bootstrap_stats(filtered_data['target_column'])
|
271 |
|
272 |
mean_value = np.mean(filtered_data['Predicted_target'])
|
273 |
|