Instructions for Codex working on Python machine learning experiments in this repo.
- Use Python with
pyenv,pip, andgit. - Prefer solutions that work on Linux and macOS.
- This is experiment code, not production code.
- Prefer code that is simple, short, and straightforward.
- Optimize for fast iteration and easy edits.
- Do not over-engineer robustness, abstractions, or configuration.
- Format code with
blackusing line length120. - Sort imports with
isort. - Keep functions small and direct.
- Prefer scripts and plain functions over complex class structures.
- Add lightweight
print()logging for important experiment steps. - Log enough intermediate results to visually verify behavior.
- Prefer concise logs over noisy logs.
- Run the smallest useful check for the change.
- If formatting is needed, use
black --line-length 120 .andisort ..
- Never overwrite user changes you did not make.
- Never use destructive git commands unless explicitly requested.