Converting Research Notebook to Operational Pipeline With MLRun¶
This demo demonstrates how to convert existing machine-learning (ML) code to an MLRun project. The demo implements an MLRun project for taxi ride-fare prediction based on a Kaggle notebook with an ML Python script that uses data from the New York City Taxi Fare Prediction competition.
Running the Demo¶
To run the demo, simply open the mlrun-code.ipynb notebook from an environment with a running MLRun service and run the code cells.
The code includes the following components:
Data ingestion — ingest NYC taxi-rides data.
Data cleaning and preparation — process the data to prepare it for the model training.
Model training — train an ML model that predicts taxi-ride fares.
Model serving — deploy a function for serving the trained model.
Notebooks and Code¶
- Original NYC Taxi ML Notebook
- Refactored As Operational Pipeline (with MLRun)
- Model Serving Function