Skip to content

Commit fecbe3e

Browse files
committed
refactor: restructure project for CDSD presentation
Structure changes: - data/ split into raw/ processed/ geo/ docs/ - models/ consolidated into crime_predictor/ with artifacts/ src/ tests/ - notebooks/ cleaned and numbered (01_ 02_ 03_) - files/ legacy HF folder removed - __pycache__ and .pyc files removed MLOps improvements: - Single crime_predictor.pkl in artifacts/ - metrics.json (R²=0.979) promoted to artifacts/ - Duplicate mlruns/ removed, single root mlruns/ kept Code quality: - Files with trailing spaces renamed - Illegible UUID filename → communes.json - predict_legacy.py clearly labelled
1 parent 1e6d070 commit fecbe3e

41 files changed

Lines changed: 181 additions & 1776 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 55 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,61 @@
1-
.venv/
1+
# =============================================================================
2+
# Oasis Security — .gitignore
3+
# =============================================================================
4+
5+
# ── Environnements virtuels (NE JAMAIS COMMITER) ─────────────────────────────
26
venv/
7+
.venv/
8+
env/
9+
.env/
10+
ENV/
11+
12+
# ── Python ────────────────────────────────────────────────────────────────────
313
__pycache__/
4-
*.pyc
5-
*.pyo
14+
*.py[cod]
15+
*$py.class
616
*.so
17+
*.egg
18+
*.egg-info/
19+
dist/
20+
build/
21+
.eggs/
22+
*.whl
23+
24+
# ── Jupyter ───────────────────────────────────────────────────────────────────
725
.ipynb_checkpoints/
8-
notebooks/data/
9-
*.xlsx
10-
*.docx
26+
27+
# ── Données brutes (gérer via DVC ou Git LFS si besoin) ──────────────────────
28+
data/raw/
29+
# Décommenter si les données sont lourdes ou sensibles :
30+
# *.parquet
31+
# *.csv
32+
33+
# ── MLflow ────────────────────────────────────────────────────────────────────
34+
mlruns/
35+
mlflow.db
36+
37+
# ── Secrets & variables d'environnement ──────────────────────────────────────
38+
.env
39+
.env.*
40+
secrets.yaml
41+
config/secrets/
42+
43+
# ── IDE ───────────────────────────────────────────────────────────────────────
44+
.vscode/
45+
.idea/
46+
*.swp
47+
*.swo
1148
.DS_Store
12-
venv/
49+
Thumbs.db
50+
51+
# ── Tests & couverture ────────────────────────────────────────────────────────
52+
.coverage
53+
htmlcov/
54+
.pytest_cache/
55+
.tox/
56+
57+
# ── Logs ─────────────────────────────────────────────────────────────────────
58+
*.log
59+
logs/
60+
1361
0_README.md

data/d792092f-b1f7-4180-a367-d043200c1520.json renamed to data/geo/communes.json

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

files/DEPLOIEMENT_HF.md

Lines changed: 0 additions & 125 deletions
This file was deleted.

0 commit comments

Comments
 (0)