Model Pipeline - Experiment tracking (MLflow)
This pipeline shows how MLflow helps track machine learning experiments. It records data, model training steps, and results so you can compare and improve models easily.
This pipeline shows how MLflow helps track machine learning experiments. It records data, model training steps, and results so you can compare and improve models easily.
Loss
0.7 |****
0.6 |***
0.5 |**
0.4 |*
0.3 |*
1 2 3 4 5 Epochs
| Epoch | Loss ↓ | Accuracy ↑ | Observation |
|---|---|---|---|
| 1 | 0.65 | 0.60 | Model starts learning, loss is high, accuracy low |
| 2 | 0.50 | 0.72 | Loss decreases, accuracy improves |
| 3 | 0.40 | 0.78 | Model continues to improve |
| 4 | 0.35 | 0.82 | Loss lowers further, accuracy near good level |
| 5 | 0.33 | 0.85 | Training converges with good accuracy |
import mlflow
with mlflow.start_run():
mlflow.log_param('alpha', 0.1)
mlflow.log_metric('accuracy', 0.95)
run_info = mlflow.active_run().info
print(run_info.run_id is not None)import mlflow
mlflow.log_param('learning_rate', 0.01)
with mlflow.start_run():
mlflow.log_metric('loss', 0.2)Pass the test and this pattern moves unknown