How shivammitra/ml-project-integration-with-mlflow-tracking works
Purpose and execution model
This is a notebook-driven machine-learning repository containing two independent experiments: Iris species classification and house-price regression. Both workflows train/evaluate scikit-learn models and record runs, metrics, parameters, and model artifacts through MLflow. There is no packaged application, service API, or shared source module layer.
Primary entry points:
• ML Project.ipynb — Iris classification workflow.
• House Price Prediction.ipynb — house-price regression workflow.
Runtime and dependencies
Execution occurs in a Python/Jupyter environment. Dependencies are installed from requirements.txt and include MLflow, scikit-learn, pandas, NumPy, and visualization libraries. MLflow’s local UI/tracking server is expected to run separately via mlflow ui, with dashboard URLs targeting 127.0.0.1:5000.
Paths:
• requirements.txt
• ML Project.ipynb
• House Price Prediction.ipynb
Iris classification pipeline
ML Project.ipynb is an end-to-end supervised classification experiment. Its stated stages are:
1. Load the Iris dataset from scikit-learn.
2. Perform exploratory analysis.
3. Train one or more classifiers, such as Logistic Regression, Decision Tree, or Random Forest.
4. Evaluate predictive performance.
5. Log parameters, metrics, and model artifacts to MLflow.
The sklearn dataset is the input boundary; trained models and experiment metadata cross into MLflow.
Path:
• ML Project.ipynb
House-price regression pipeline
House Price Prediction.ipynb implements an independent regression workflow. It transforms numerical housing attributes, trains and tunes a regression model, and assesses predictions with RMSE, MAE, and R². Its artifact/model lifecycle is also delegated to MLflow.
Core stages:
1. Load housing data.
2. Preprocess and normalize features.
3. Train and hyperparameter-tune regression models.
4. Evaluate with regression metrics.
5. Persist run metadata and model artifacts through MLflow.
Path:
• House Price Prediction.ipynb
Experiment-tracking boundary
MLflow is the central cross-cutting infrastructure component, but each notebook owns its own experiment lifecycle. Tracking captures:
• Run identity and experiment grouping.
• Training parameters and tuning choices.
• Classification or regression metrics.
• Serialized model artifacts.
The README references a dedicated Iris experiment and the default experiment for house pricing, implying separate MLflow run contexts rather than a shared pipeline orchestration layer.
Paths:
• README.md
• ML Project.ipynb
• House Price Prediction.ipynb
Architectural constraints
The repository is organized around interactive notebooks, so data preparation, model selection, evaluation, and logging are likely coupled within notebook cells rather than reusable production components. Reproducibility depends on the notebook execution order, installed environment, available input data, and the local MLflow tracking store. No deployment, model-serving, CI, persistent remote artifact store, or dataset-management component is present in the repository tree.
Main entry points: ML Project.ipynb Iris workflow notebook · House Price Prediction.ipynb House-price workflow notebook · requirements.txt Python dependencies
Components 14
Iris experiment
- scikit-learn Iris data · Input boundary supplied by scikit-learn.
- Iris workflow notebook · Owns the end-to-end classification experiment.
ML Project.ipynb - Exploration
- Classifier training · Logistic Regression, Decision Tree, or Random Forest.
- Classification evaluation
House-price experiment
- Housing data · External input data required at notebook execution.
- House-price workflow notebook · Owns the end-to-end regression experiment.
House Price Prediction.ipynb - Feature preprocessing · Transforms and normalizes numerical housing attributes.
- Regression training and tuning
- Regression evaluation · Measures RMSE, MAE, and R².
Other components
- Python dependencies · MLflow, scikit-learn, pandas, NumPy, and visualization libraries.
requirements.txt - Python/Jupyter runtime
- MLflow tracking server · Local tracking store and artifact lifecycle boundary.
- MLflow UI · Local dashboard expected at 127.0.0.1:5000.
Connections 14
- Python dependencies → Python/Jupyter runtime: installs
- Python/Jupyter runtime → Iris workflow notebook: executes
- Python/Jupyter runtime → House-price workflow notebook: executes
- scikit-learn Iris data → Iris workflow notebook: loaded by
- Iris workflow notebook → Exploration: explores
- Exploration → Classifier training: informs
- Classifier training → Classification evaluation: predicts
- Iris workflow notebook → MLflow tracking server: logs Iris runs, metrics, and models
- Housing data → House-price workflow notebook: loaded by
- House-price workflow notebook → Feature preprocessing: preprocesses
- Feature preprocessing → Regression training and tuning: provides features
- Regression training and tuning → Regression evaluation: predicts
- House-price workflow notebook → MLflow tracking server: logs default-experiment runs and models
- MLflow tracking server → MLflow UI: serves tracked runs