<One sentence: the question this analysis or model answers.>
Stack
-
Python <3.12+>, <uv conda> environment - pandas
, numpy, scikit-learn, <matplotlib | seaborn | plotly>; notebooks in Jupyter - Data lives in
data/raw/(read-only),data/processed/(generated)
Commands
- Environment:
uv sync<orconda env create -f environment.yml> - Notebooks:
uv run jupyter lab - Pipeline:
uv run python -m src.pipeline<ormake data,make train> - Tests:
uv run pytest -q
Rules
- Never modify files in
data/raw/. Every processed file must be reproducible from code insrc/. - Reusable logic moves from notebooks into
src/with tests; notebooks import it. - Set random seeds and record library versions for any reported result.
- Split data before any fitting or feature scaling; check for leakage (target information, future data, duplicate entities across splits).
- Report metrics with the baseline next to them (majority class, last value, simple linear model).
- Large datasets: read only needed columns, use efficient dtypes, sample for exploration and say so.
- Do not print whole dataframes into the conversation; show
shape,head(),describe()or summaries. - No personal data in notebooks outputs committed to git; clear outputs before committing if they contain rows.
Definition of done
- Pipeline runs end to end from raw data; tests pass; results include seeds, data version and baseline comparison.