Commit History
-
feat: add notebooks, badges, and eliminate classify_risk duplications (batch 4/4)
cheikhaidev-ui- feat(notebooks): add 01_EDA.ipynb (7 cells: distributions, correlations, temporal patterns) - feat(notebooks): add 02_model_evaluation.ipynb (11 cells: metrics, ROC, confusion matrix, feature importance) - refactor(app): replace 6 inline risk classification expressions with classify_risk() - docs(readme): add CI badge and HF Spaces live badge (5 badges total)a408d59 -
test: add pytest test suite and GitHub Actions CI (batch 3/3)
cheikhaidev-ui- test(config): 5 tests for classify_risk() and QUARTIERS_DAKAR integrity - test(features): 5 tests for create_time_features() encoding correctness - ci: add GitHub Actions workflow (Python 3.12, pytest on push/PR to main) - All 10 tests passing locallyefe72c1 -
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 -
fix(hf): add required YAML metadata to README for HF Spaces
cheikhaidev-ui0d55d9d -
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
-
Revise Cheikh Niang's contact links in README
Unverified signatureUpdated LinkedIn and Portfolio links for Cheikh Niang.fd9b3d1 -
docs: amélioration README professionnel avec contexte business, résultats et screenshots
1574029
-
Install libgomp1 to fix LightGBM library error
593c4fa -
Fix README encoding and change port to 8501
b8f73cf -
Change port from 7860 to 8501 to match Streamlit default
3b21c1b -
Fix port configuration - remove port from config.toml
ffd8902 -
Fix config.toml encoding issue
bec18ed -
Add models and data folders
9491a88 -
Fix .streamlit config
6fa9e1a -
Remove binaries, fix README
8b38e16 -
Fix colorTo metadata
f294bc4 -
Initial commit - code only
5cda98e