A Python machine learning project using Scikit-learn, Setuptools, Virtual Environment, Git, and Docker.
ml_project/
│
├── src/
│ └── ml_project/
│ ├── __init__.py
│ └── train.py
│
├── tests/
│
├── data/
│
├── models/
│
├── .gitignore
├── .dockerignore
├── Dockerfile
├── pyproject.toml
└── README.md
- Python 3.10+
- Git
- Docker
git clone <your-repository-url>
cd ml_projectpython3 -m venv .venvmacOS/Linux:
source .venv/bin/activateWindows:
.venv\Scripts\activateInstall the project and its dependencies using pyproject.toml:
python -m pip install -e .python src/ml_project/train.pyThe project dependencies are defined in pyproject.toml.
Current dependencies include:
- NumPy
- Pandas
- Scikit-learn
- Joblib
docker build -t ml-project .docker run --rm ml-projectCreate a new branch for development:
git checkout -b devCheck the current status:
git statusAdd changes:
git add .Commit changes:
git commit -m "Add ML project"Push the branch to GitHub:
git push -u origin devProject configuration and dependencies are managed through:
pyproject.toml
The local virtual environment is stored in:
.venv/
The virtual environment is intentionally excluded from Git using .gitignore.
This project is for learning and development purposes.