2024-04-04
pipeline.spatial_sig_prediction(
geo_path="../data/london_grid.geojson", # Area to analyze
vrt_file="../data/2017_satellite.vrt", # Satellite composite
xgb_weights="../models/xgb_model.bin", # XGBoost model
model_weights="../models/satlas.pth", # Satlas embedding model
output_path="../output/test_london.parquet", # Prediction results
h3_resolution=5
)
Sliding Window Augmentation (50m)
Classes (K) | Spatial Context | Accuracy | Macro Accuracy | Macro F1 Score |
---|---|---|---|---|
7 | None | 0.4924 | 0.3856 | 0.3389 |
7 | H3 (res 5) | 0.6959 | 0.5713 | 0.5221 |
12 | None | 0.4617 | 0.2666 | 0.2127 |
12 | H3 (res 5) | 0.6654 | 0.4328 | 0.3654 |
Classes (K) | Spatial Context | Accuracy | Macro Accuracy | Macro F1 Score |
---|---|---|---|---|
7 | None | 0.4 | 0.2 | 0.14 |