Coder Social home page Coder Social logo

secrettoad / kubeflow Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 32 KB

An example of using Kubeflow to deploy machine learning pipelines in production

Home Page: https://www.coysu.com

License: GNU Affero General Public License v3.0

Python 100.00%

kubeflow's Introduction

Kubeflow pipelines for multifamily price prediction

Problem

A commercial mortgage underwriter is interested in the future prices and valuations of various commercial real estate assets. In this example, we build a machine learning pipeline that utilizes various attributes of historical real estate valuations in order to predict the future valuation of a given asset. This pipline is deployed via Kubeflow to Vertex AI in order to automate and scale, efficiently leveraging GCP's serverless infrastucture.

Code Sample

The python code for this pipeline resides in https://github.com/secrettoad/kubeflow/blob/main/multifamily_pricing/main.py

To run the pipeline, call the run_pricing_pipeline function within main.py

To deploy a pipeline for automatic runs on new uploads to the associated gcs bucket, run the command below (you will need to authenticate to gcp first and have the appropriate permissions, as well as have created the bucket to be listened to)

gcloud functions deploy python-finalize-function \
--runtime=python38 \
--region=us-west1 \
--source=multifamily_pricing \
--entry-point=run_pricing_pipeline \
--trigger-bucket="coysu-demo-datasets" \
--memory=1024MB

The Google Cloud Functions cli command provided at the beginning of this document creates a serverless, asynchronous function that listens for new files being added to the relevant bucket. The pipeline then uses dask to load all relevant files within each train and test directory.

Within the function deploy_component a model is pushed to the gcp model registry and then exposed via an http endpoint.

Kubeflow in conjunction with Vertex AI is a combination of tools that enables the deployment of pipelines in a commercial-grade, production-ready manner without demanding an inordinate amount of time or resources. Contact John at [email protected] for more information.

kubeflow's People

Contributors

secrettoad avatar

Watchers

 avatar

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.