Are you sure you want to delete this access key?
Legend |
---|
DVC Managed File |
Git Managed File |
Metric |
Stage File |
External File |
Legend |
---|
DVC Managed File |
Git Managed File |
Metric |
Stage File |
External File |
This project is a complete Machine Learning pipeline that includes model training, batch predictions, and an interactive web app using Streamlit, DVC, and Docker. It also integrates with DagsHub for version control and experiment tracking.
.csv
filesconfig.yaml
ML-PROJET-WITH-DOCKER/
│
├── app/
│ ├── training/
│ │ └── train_model.py # Script to train and save the model
│ ├── model/
│ │ ├── load_model.py # Load model from file
│ │ └── predictor.py # Make predictions using the model
│ ├── streamlit_app.py # Streamlit web application
│ ├── utils.py # Utility functions
│ └── dvc_utils.py # DVC utility integration
│
├── data/ # Raw input data (tracked by DVC)
├── models/ # Trained models (tracked by DVC)
│ └── gradiant_boosting_model.pkl # Trained Gradient Boosting model
├── uploads/ # Uploaded files via Streamlit
│
├── .dvc/ # DVC internal files
├── .venv/ # Python virtual environment (excluded)
├── .env # Environment variables
├── Dockerfile # Docker image definition
├── config.yaml # Centralized parameters and paths
├── requirements.txt # Python dependencies
├── dvc.yaml # DVC pipeline definition
├── dvc.lock # DVC stage locks for reproducibility
└── README.md
docker build -t ml-docker-app .
docker run -p 8501:8501 ml-docker-app
We use DVC to track data and model versions, and define reproducible pipelines.
dvc repro
dvc stage add -n train_model \
-d app/training/train_model.py \
-d config.yaml \
-o models/gradiant_boosting_model.pkl \
python3 app/training/train_model.py
This project can be synced with DagsHub to manage:
✅ Data & model versioning
✅ Experiments tracking with MLflow
✅ Git/DVC repository hosting
Press p or to see the previous file or, n or to see the next file
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?