Giter Site home page Giter Site logo

continuous-adaptation-with-vertexai-automl-pipeline's Introduction

Continuous Adaptation with VertexAI's AutoML and Pipeline

This repository contains two notebooks to demonstrate how to automate to produce a new AutoML model when the new dataset comes in. This project uses Vertex AI in general, Vertex Managed Dataset, Vertex Pipeline, Vertex AutoML, Cloud Storage, and Cloud Function in Google Cloud Platform.

About the notebooks

There are two notebooks for this project. Everything can be setup by running each cell in the notebooks. The only thing you need to do manually is to setup IAMs.

IAMs Setup

  1. For Vertex Pipeline, we need Vertex Admin, Cloud Storage Viewer, Cloud Storage Editor permissions(Some ML components need to access the managed dataset, and the Pipeline itself is stored in GCS(Google Cloud Storage) bukcet, so we need the listed permissions.). This can be setup under compute service account since Vertex Pipeline uses compute engines to run each component of the ML Pipeline. Also don't forget to enable compute service account and Vertex AI API.

  2. For Cloud Function, we need Vertex Admin and Cloud Build enabled. Since the docker image that the Cloud Function bases should be built by Cloud Build, we need Cloud Build API enabled. Also, Cloud Funcion will trigger the Vertex Pipeline, so we need Vertex Admin

Notebooks

  1. cifar-10-vertex-autoML-pipeline
  • This notebook should be run before the second notebook. It will prepare the Kubeflow Pipeline with two additional custom components which determines if there is existing dataset or not. The entire notebook produces the pipeline spec json file and put it in the GCS bucket.

  1. prepare-cifar10-subset
  • This notebook creates two subsets of CIFAR10 dataset for simulating purpose. It also provides the codebase for Cloud Function, and you can directly deploy it within the notebook. Lastly, it tries to simulate the continuous adaptation scenario by putting each subset of data sequentially.

continuous-adaptation-with-vertexai-automl-pipeline's People

Contributors

deep-diver avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

continuous-adaptation-with-vertexai-automl-pipeline's Issues

Advantage of pipeline over cloud function

Thank you for this great example!

I was wondering what the advantages are of triggering a Kubeflow pipeline over calling Vertex AI endpoints from the cloud function directly? Or is the latter not possible?

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.