Giter VIP home page Giter VIP logo

airbnb_price_prediction's Introduction

Predict AirBnb Rental Prices

ML pipeline to predict the optimal pricing for AirBnb rentals

Based heavily on the work of Raki Rahman: https://www.linkedin.com/in/mdrakiburrahman

Primary components

We're going to demo the three core components that make up mlflow:
MLflow

Note: you don't have to use all three, each feature can be used independently.

Tracking

This allows us to log all aspects of the ML process - like different hyperparameters we tried, evaluation metrics, as well as the code we ran - alongside other arbitrary artifacts such as test data.

This also provides a leaderboard-style UI that makes it easy to see which model performed the best.

Projects

These are all about reproducibility and sharing. They combine GIT, the environment/model framework, either conda or docker and the specification that makes the code re-runnable.

Models

An abstraction that allows us to create/export models from any open source framework via the Tracking and Projects abstractions. We can also export them to a standard format that can be deployed to any number of systems. Since most deployment systems use some sort of container based solution (e.g. AzureML or Sagemaker), models make easy deployments to these systems - or we can deploy directly to Kubernetes or Azure Container Registry.

Agenda

In this notebook we will demonstrate the following topics:


Step 1: Load our exploration dataset into a DataFrame

In this case, we'll be using the "Inside Airbnb" dataset, and loading it from a csv from an Azure Storage Container.

Step 2: Perform basic exploratory analysis

Like plotting on a heatmap to get a better sense of the data.

Step 3: Tracking Demo: Random Forest Experiment

We perform multiple experiments using scikit-learn's Random Forest Regressor and log the models on MLflow to demonstrate the tracking capabilities.

Step 4: Projects Demo: Package up a Random Forest model as a Project

We will define these components that makes up an MLflow Project.:

  • MLProject file
  • Conda file
  • Run script

We will also load and run a Project straight from git to demonstrate git integration capabilities.

Step 5: Model Management Demo: Explore model flavors and framework abstraction capabilities

We explore the power of model flavors and framework abstraction capabilities available with MLflow models.

Step 6: Production Serving Demo: Containerize the trained model and deploy to Azure Container Instances

We will build a Docker Container Image for a trained model and deploy to Azure Container Instance (can easily swap to Kubernetes as well).

Step 7: Live scoring Demo: Make a prediction against the live API endpoint

We use an HTTP call and Postman to make a prediction against a test payload.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.