Spaces:
Sleeping
Sleeping
fschwartzer
commited on
Commit
•
2c61227
1
Parent(s):
e9a0b44
Update app.py
Browse files
app.py
CHANGED
@@ -227,6 +227,8 @@ with st.container():
|
|
227 |
st.map(filtered_data, zoom=zoom_level, use_container_width=True)
|
228 |
st.write("Dados:", filtered_data) # Debug: Print filtered_data
|
229 |
|
|
|
|
|
230 |
# Apply KNN and get predicted Predicted_target values
|
231 |
predicted_target = knn_predict(filtered_data, 'Predicted_target', ['latitude', 'longitude', 'area_feature']) # Update with your features
|
232 |
|
|
|
227 |
st.map(filtered_data, zoom=zoom_level, use_container_width=True)
|
228 |
st.write("Dados:", filtered_data) # Debug: Print filtered_data
|
229 |
|
230 |
+
k_threshold = 5
|
231 |
+
|
232 |
# Apply KNN and get predicted Predicted_target values
|
233 |
predicted_target = knn_predict(filtered_data, 'Predicted_target', ['latitude', 'longitude', 'area_feature']) # Update with your features
|
234 |
|