-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwalkthrough.md.resolved
More file actions
32 lines (24 loc) · 1.85 KB
/
walkthrough.md.resolved
File metadata and controls
32 lines (24 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Walkthrough: MLOps Model Delivery Pipeline
I have successfully executed the training pipeline and verified the automated model registration process.
## 1. Model Training & Logging
The training script [train.py](file:///c:/Users/vanya/Python/MLOps/mlops_challenge/train.py) was executed, performing the following:
- **Dataset**: Iris dataset (150 samples).
- **Model**: RandomForestClassifier.
- **Accuracy**: 1.0 (perfect classification on the test set).
- **MLflow Tracking**: Logged parameters (`n_estimators`, `max_depth`), metrics (`accuracy`), and tags.
## 2. Automated Model Registration
The model was automatically registered in the MLflow Model Registry.
- **Model Name**: `IrisClassifierFinal`
- **Version**: A new version was created (Version 2).
## 3. Artifacts Generated
The following artifacts were successfully created and logged to MLflow:
- [confusion_matrix.png](file:///c:/Users/vanya/Python/MLOps/mlops_challenge/confusion_matrix.png): Visual representation of model performance.
- [classification_report.json](file:///c:/Users/vanya/Python/MLOps/mlops_challenge/classification_report.json): Detailed precision, recall, and f1-scores.

## 4. Model Verification (Tests)
The registered model version 1 was verified using `pytest`.
- **Command**: `$env:MODEL_URI="models:/IrisClassifierFinal/1"; python -m pytest tests/test_model.py`
- **Results**: 2 passed.
- [test_model_prediction](file:///c:/Users/vanya/Python/MLOps/mlops_challenge/tests/test_model.py#20-42): Verified that the model can load and make predictions with accuracy > 0.8.
- [test_data_consistency](file:///c:/Users/vanya/Python/MLOps/mlops_challenge/tests/test_model.py#43-47): Verified the integrity of the test features.
The system is now fully verified and ready for the next stage of the CI/CD pipeline.