cheikhaidev-ui Claude Sonnet 4.6 commited on
Commit ·
0ea7539
1
Parent(s): e7a6c23
docs(CLAUDE.md): remove Supabase references after integration removal
Browse files
CLAUDE.md
CHANGED
|
@@ -18,9 +18,6 @@ streamlit run streamlit_app/app.py
|
|
| 18 |
# Retrain models from the local CSV (takes 10–15 min due to LSTM)
|
| 19 |
python scripts/2_train_models.py
|
| 20 |
|
| 21 |
-
# Load synthetic data to Supabase
|
| 22 |
-
python scripts/3_load_to_supabase.py
|
| 23 |
-
|
| 24 |
# Generate fresh synthetic data (outputs to data/raw/raw_data.csv)
|
| 25 |
python src/data_generator.py
|
| 26 |
```
|
|
@@ -40,10 +37,8 @@ The Dockerfile installs `libgomp1` (required by LightGBM on Linux) before instal
|
|
| 40 |
streamlit_app/app.py # Entry point; sidebar controls, 4 tabs (Prédiction, Carte, Stats, Historique)
|
| 41 |
streamlit_app/utils_simple.py # All ML inference, chart creation, and model loading (@st.cache_resource)
|
| 42 |
src/config.py # Central config: quartier names, GPS coords, risk adjustments, model feature list
|
| 43 |
-
src/database.py # Supabase REST API client (bulk insert, prediction save, stats queries)
|
| 44 |
src/data_generator.py # Synthetic data generation with per-quartier risk profiles
|
| 45 |
scripts/2_train_models.py # Train LightGBM + LSTM, saves to models/
|
| 46 |
-
scripts/3_load_to_supabase.py # Upload CSV to Supabase enregistrements table
|
| 47 |
models/ # lgbm_model.pkl, lstm_model.keras, scaler.pkl (tracked via Git LFS)
|
| 48 |
data/synthetic/synthetic_data_v2.csv # Training dataset (Git LFS)
|
| 49 |
```
|
|
@@ -68,10 +63,6 @@ This order is defined in `src/config.py:MODEL_CONFIG['features']` and must stay
|
|
| 68 |
|
| 69 |
The LSTM expects shape `(1, 1, 9)` — single sample, single timestep, 9 features. This is a deliberate simplification; the model captures feature interactions rather than true time series.
|
| 70 |
|
| 71 |
-
### Supabase
|
| 72 |
-
|
| 73 |
-
Credentials are hardcoded in `src/config.py:SUPABASE_CONFIG`. The anon key is public by design (PostgREST RLS). Two tables: `enregistrements` (historical data) and `predictions` (logged inference results). `src/database.py` uses raw `requests` against the REST API, not the Supabase Python client.
|
| 74 |
-
|
| 75 |
## Key Constraints
|
| 76 |
|
| 77 |
- Models must be loaded from the project root (paths like `'models/lgbm_model.pkl'`). Always run the app from the repo root.
|
|
|
|
| 18 |
# Retrain models from the local CSV (takes 10–15 min due to LSTM)
|
| 19 |
python scripts/2_train_models.py
|
| 20 |
|
|
|
|
|
|
|
|
|
|
| 21 |
# Generate fresh synthetic data (outputs to data/raw/raw_data.csv)
|
| 22 |
python src/data_generator.py
|
| 23 |
```
|
|
|
|
| 37 |
streamlit_app/app.py # Entry point; sidebar controls, 4 tabs (Prédiction, Carte, Stats, Historique)
|
| 38 |
streamlit_app/utils_simple.py # All ML inference, chart creation, and model loading (@st.cache_resource)
|
| 39 |
src/config.py # Central config: quartier names, GPS coords, risk adjustments, model feature list
|
|
|
|
| 40 |
src/data_generator.py # Synthetic data generation with per-quartier risk profiles
|
| 41 |
scripts/2_train_models.py # Train LightGBM + LSTM, saves to models/
|
|
|
|
| 42 |
models/ # lgbm_model.pkl, lstm_model.keras, scaler.pkl (tracked via Git LFS)
|
| 43 |
data/synthetic/synthetic_data_v2.csv # Training dataset (Git LFS)
|
| 44 |
```
|
|
|
|
| 63 |
|
| 64 |
The LSTM expects shape `(1, 1, 9)` — single sample, single timestep, 9 features. This is a deliberate simplification; the model captures feature interactions rather than true time series.
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
## Key Constraints
|
| 67 |
|
| 68 |
- Models must be loaded from the project root (paths like `'models/lgbm_model.pkl'`). Always run the app from the repo root.
|