Mlflow¶
Run the Mlflow UI:
Install packages
Import packages
Set tracking URI
Load dataset
Split dataset
Define model hyperparams
Train model
Predict
Accuracy evaluation
Create an experiment
2025/12/16 15:04:03 WARNING mlflow.utils.environment: Failed to resolve installed pip version. ``pip`` will be added to conda.yaml environment spec without a version specifier.
Registered model 'tracking-simple-regression' already exists. Creating a new version of this model...
2025/12/16 15:04:03 INFO mlflow.store.model_registry.abstract_store: Waiting up to 300 seconds for model version to finish creation. Model name: tracking-simple-regression, version 2
Created version '2' of model 'tracking-simple-regression'.
Load the model
| sepal length (cm) | sepal width (cm) | petal length (cm) | petal width (cm) | actual_class | predicted_class | |
|---|---|---|---|---|---|---|
| 0 | 6.4 | 2.8 | 5.6 | 2.2 | 2 | 2 |
| 1 | 5.6 | 2.9 | 3.6 | 1.3 | 1 | 1 |
| 2 | 6.1 | 3.0 | 4.9 | 1.8 | 2 | 2 |
| 3 | 4.6 | 3.2 | 1.4 | 0.2 | 0 | 0 |
| 4 | 5.8 | 2.8 | 5.1 | 2.4 | 2 | 2 |
Model Registry¶
Centralized model store to collaboratively manage the full lifecycle of MLflow Models.
It provides model versioning, stage transitions (e.g., Staging to Production), and annotations.