Scikit-learn Model Serving with Online Prediction Using AI Platform




Create a storage bucket

Create Virtual Machine

Create directory and download data files

Upload the saved model

Create a model resource

Create a model version

Scikit-learn Model Serving with Online Prediction Using AI Platform

1시간 20분 크레딧 5개


Google Cloud Self-Paced Labs


If you've built machine learning models with scikit-learn, and you want to serve your models in real time for an application, managing the resulting infrastructure may sound like a nightmare. Fortunately, there's an alternative - serving your trained scikit-learn models on AI Platform.

You can now upload a model you've already trained onto Cloud Storage and use AI Platform Prediction to support scalable prediction requests against your trained model.

In this lab you learn how to train a simple scikit-learn model, deploy the model to AI Platform Prediction, and make online predictions against that model.

How to bring a scikit-learn model to AI Platform

Getting your model ready for prediction can be done in 5 steps:

  1. Create and save a model to a file
  2. Upload the saved model to Cloud Storage
  3. Create a model resource in AI Platform
  4. Create a model version (linking your scikit-learn model)
  5. Make an online prediction

This lab walks you through the five steps listed above.

What you will build


What you'll learn

  • How to create a model on AI Platform
  • How to make online predictions against your model on AI Platform

Before you jump in to the lab, learn about the different tools you'll be using to get online prediction up and running on AI Platform:

Google Cloud lets you build and host applications and websites, store data, and analyze data on Google's scalable infrastructure.

AI Platform Prediction is a managed service that enables you to easily build machine learning models that work on any type of data, of any size.

Cloud Storage is a unified object storage for developers and enterprises, from live data serving to data analytics/ML to data archiving.

Cloud SDK is a command line tool which allows you to interact with Google Cloud products.

이 실습의 나머지 부분과 기타 사항에 대해 알아보려면 Qwiklabs에 가입하세요.

  • Google Cloud Console에 대한 임시 액세스 권한을 얻습니다.
  • 초급부터 고급 수준까지 200여 개의 실습이 준비되어 있습니다.
  • 자신의 학습 속도에 맞춰 학습할 수 있도록 적은 분량으로 나누어져 있습니다.
이 실습을 시작하려면 가입하세요