This is a repository for machine learning playground and sample codes.
I want to organize samples for myself because sample codes for machine learning are often of low quality.
The repository tracks Python # type: ignore markers with gh-counter.
- GitHub Actions runs tests for each versions of Python. (Currently 3.10 - 3.12)
- This range is determined by lifecycle of Python versions and libraries.
- Python support table: https://devguide.python.org/versions/
- numpy support table: https://numpy.org/neps/nep-0029-deprecation_policy.html
- Renovate continuously updates dependencies.
- nbmake tests Jupyter ipynb files.
By doing so, I will ensure that sample codes always function as samples.
- Read CONTRIBUTING.md before opening a pull request.
- Report suspected vulnerabilities through SECURITY.md, not a public issue.
- Follow CODE_OF_CONDUCT.md when participating in issues or pull requests.
Install dependencies with uv.
uv syncThis project uses typos. Please install it according to https://github.com/crate-ci/typos#install
uv run poe testuv run poe formatuv run poe checkThis repository uses lefthook to run the same checks as CI locally, so problems surface before they reach CI.
# Install dependencies
uv sync
# Install the Git hooks (once; requires lefthook on your PATH)
lefthook installOnce installed, the hooks run automatically:
- pre-commit:
uv run poe check - pre-push:
uv run poe checkanduv run poe test
You can also run the checks manually:
uv run poe check
uv run poe testCI still runs the full matrix (see .github/workflows/); the hooks only bring that
feedback earlier on your machine.
MIT License