Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.86 KB

README.md

File metadata and controls

36 lines (23 loc) · 1.86 KB

How-To: Converting Existing ML Code to an MLRun Project

Overview | Running the Demo | Demo Flow | Pipeline Output | Notebooks and Code

Overview

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.

Demo Flow

The code includes the following components:

  1. Data ingestion — ingest NYC taxi-rides data.
  2. Data cleaning and preparation — process the data to prepare it for the model training.
  3. Model training — train an ML model that predicts taxi-ride fares.
  4. Model serving — deploy a function for serving the trained model.

Pipeline Output

converting-to-mlrun pipeline output

Notebooks and Code

  • original-code.ipynb — contains the original ML script to be converted.
  • mlrun-code.ipynb — the main demo notebook ("all in one"), which contains the MLRun equivalent of the code from the original-code.ipynb notebook.
  • model-serving.ipynb — a model-serving function (used from mlrun-code-.ipynb).