This is a cookiecutter template for AI/ML model module projects.
- Cookiecutter
- AI/ML model
- Python module/package
- Jupyter notebook
- Research
- Project Structure
- Template
- CI/CD
- Install Python (>= v3.10) and pip (>= 23):
- [RECOMMENDED] Miniconda (v3)
- [arm64/aarch64] Miniforge (v3)
- [Python virtual environment] venv
For DEVELOPMENT environment:
# Create projects directory:
mkdir -pv ~/workspaces/projects
# Enter into projects directory:
cd ~/workspaces/projects
# Clone the repository:
git clone [REPOSITORY_URL]
# Or download and extract the repository from GitHub:
# 1. Go to the repository on GitHub.
# 2. Click on the "Code" button.
# 3. Select "Download ZIP" and save the file to your computer.
# 4. Extract the ZIP file in current directory.
# Enter into the repository:
cd model-python-template
# Change to cookiecutter branch:
git checkout cookiecutter# Install cookiecutter:
pip install -r ./requirements.txt
# Install pre-commit hooks:
pre-commit install# Generate project:
cookiecutter -f .
# Or:
./scripts/build.shcd [PROJECT_SLUG]👍
- Cookiecutter (GitHub) - https://github.com/cookiecutter/cookiecutter
- Cookiecutter (Docs) - https://cookiecutter.readthedocs.io/en/stable