Verdict
Ready to train
- No blocking problem found. Read the advice below before training.
Advice
- Strong class imbalance (1:4.8). Use class weights ("balanced"), judge models by PR-AUC / TSS rather than accuracy, and remember probabilities reflect this sampling ratio.
- The flood label is spatially clustered (Moran I = 0.69, p = 0.005). Random cross-validation would be over-optimistic: use spatial block CV.
- Suggested spatial block size: about 1,073 m (median autocorrelation range of 3 variable(s); capped at 1,073 to leave enough blocks for 5 folds).
- Records
- 3908
- Flood (1)
- 3237
- Non-flood (0)
- 671
Figures
Predictors
| feature | type | missing_pct | n_unique | min | median | max | sd |
|---|---|---|---|---|---|---|---|
| distance_to_river1 | numeric | 0.179 | 3774 | 0.000 | 0.010 | 0.052 | 0.013 |
| distance_to_road1 | numeric | 0.179 | 3852 | 0.000 | 0.004 | 0.026 | 0.005 |
| elevation_srtm_30m_clipped | numeric | 0.077 | 1804 | 1.782 | 5.833 | 13.321 | 1.492 |
| ndvi_s2_10m | numeric | 0.000 | 3908 | -0.379 | 0.482 | 0.739 | 0.185 |
| slope_degree_30m_clipped | numeric | 0.077 | 3820 | 0.000 | 1.526 | 7.329 | 0.782 |
Variance-inflation factor
| feature | vif |
|---|---|
| distance_to_river1 | 1.225 |
| distance_to_road1 | 1.221 |
| elevation_srtm_30m_clipped | 1.162 |
| ndvi_s2_10m | 1.114 |
| slope_degree_30m_clipped | 1.050 |