Commit History
-
chore(config): remove unused SEUILS_RISQUE, TEMPERATURE_RANGES, CONSO_RANGES
cheikhaidev-ui +1: Claude Sonnet 4.6Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>e7a6c23 -
fix(quartiers): normalize Guédiawaye accent across config and rename map
cheikhaidev-ui +1: Claude Sonnet 4.6Add 'Guediawaye' → 'Guédiawaye' to _QUARTIER_RENAME in app.py and update all three occurrences in src/config.py (QUARTIERS_DAKAR, COORDONNEES_QUARTIERS, QUARTIER_ADJUSTMENT) for consistency. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>8fd2116
-
chore: remove Supabase integration (database.py, load script, config)
cheikhaidev-ui +1: Claude Sonnet 4.6Drop src/database.py, scripts/3_load_to_supabase.py and the SUPABASE_CONFIG block from src/config.py — the app no longer depends on any Supabase connection. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>5ae4a65 -
fix(ux): auto map + hour slider + dark theme + data fixes
cheikhaidev-ui- fix(map): remove button gate, map now auto-renders on parameter change - fix(predictions): add hour slider (0-23) to control is_peak_hour correctly - fix(map): carte updates dynamically with all sidebar parameters - fix(weather): clamp precipitation to 0 (no negative values) - fix(chart): filter empty weeks in temporal chart (conso > 100 MW) - feat(theme): add Streamlit dark theme with red primary colore49e56b
-
feat(v2): add real-time weather API + improved map colors
cheikhaidev-ui- feat(weather): integrate Open-Meteo API for real Dakar weather data - feat(sidebar): add weather button to auto-fill sliders with live data - feat(map): colored markers by risk level (green/orange/red), size=20, zoom=11 - Live test: Dakar 25.2C, 82% humidity, 7.4 km/h windd248d81
-
perf: vectorize data generation and batch map predictions (batch 2/3)
cheikhaidev-ui- perf(data_generator): replace 52,560-iter Python loop with numpy vectorized ops (~20-50x faster) - perf(supabase): replace iterrows() with to_dict('records'), add timeout=30, exponential backoff on error - perf(app): batch 8 map predictions into single numpy matrix call (8x fewer model invocations) - fix(app): initialize results=[] before model availability check to prevent NameError1c045e4 -
refactor: improve code quality (batch 1/3)
cheikhaidev-ui- feat(config): add classify_risk() function with type hints, eliminates 5 duplications - refactor(app): replace wildcard import with 8 explicit named imports - fix(utils): replace global warnings.filterwarnings with targeted keras/lightgbm filters - chore(src): remove dead MySQL config from __init__.py - fix(error-handling): replace 4 bare except: with except Exception as e + loggingf76db68 -
fix: correct critical feature encoding bugs + retrain models
cheikhaidev-ui +1: Claude Sonnet 4.6BREAKING FIX: silent wrong predictions in production resolved - fix(inference): align saison encoding with training CSV (binary 0/1, pluies=Jun-Aug) - fix(inference): align is_peak_hour with training CSV (18-22h, evening only) - fix(inference): remove invalid predict_proba fallback on lgb.Booster - fix(config): harmonize quartier names with accents (Sicap-Liberté, Mermoz-Sacré-Cœur) - fix(config): remove module-level print() causing UnicodeEncodeError on Windows - chore(deps): upgrade tensorflow-cpu 2.15.0 → 2.17.1 (Python 3.12 support) - chore(models): retrain LightGBM (87.42%) and LSTM (87.31%) with corrected encodings Audit performed by Claude Code — 22 issues found, 4 critical bugs fixed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>3e4b260
-
Initial commit - code only
5cda98e