Code Monkey home page Code Monkey logo

mlops-example's Introduction

mlops-example

How to run

Create GCP projects

That's it.

Prepare GCP credentials

gcloud auth login  
gcloud init  
gcloud iam service-accounts create dsdemo  
your_project_id={enter your project_id}  
gcloud projects add-iam-policy-binding $your_project_id  --member "serviceAccount:dsdemo@$your_project_id.iam.gserviceaccount.com" --role "roles/owner"  
gcloud iam service-accounts keys  create dsdemo.json --iam-account  dsdemo@$your_project_id.iam.gserviceaccount.com  

Set up

source local.env
poetry install

No UI

  1. Create and save model

poetry run python ml_api/model.py

  1. Setup server

poetry run python ml_api/server.py

  1. Request prediction

poetry run python ml_api/request.py

With UI

  1. Create and save model

poetry run python ml_api/model.py

  1. Setup server

poetry run python ml_api/dash_server.py

Reference

https://github.com/bgweber/DS_Production

https://www.amazon.co.jp/Data-Science-Production-Building-Pipelines/dp/165206463X

mlops-example's People

Contributors

r-matsuzaka avatar

Stargazers

 avatar

Watchers

 avatar

mlops-example's Issues

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.