GithubHelp home page GithubHelp logo

bhanditz / cloudml-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/cloudml-samples

0.0 2.0 0.0 81.69 MB

Samples for Google Cloud Machine Learning Engine

Home Page: https://cloud.google.com/ml-engine/docs/

License: Apache License 2.0

Shell 2.04% Python 75.48% Jupyter Notebook 22.02% Dockerfile 0.39% OpenEdge ABL 0.07%

cloudml-samples's Introduction

Google Cloud Machine Learning Engine

License

Welcome to the Google Cloud Machine Learning Engine (Cloud ML Engine) sample code repository. This repository contains samples for how to use Cloud ML Engine for model training and serving.

Note: If you’re looking for our guides on how to do Machine Learning on Google Cloud Platform (GCP) using other services, please checkout our other repository: ML on GCP, which has guides on how to bring your code from various ML frameworks to Google Cloud Platform using things like Google Compute Engine or Kubernetes.

Setup

For installation instructions and overview, please see the documentation. Please refer to README.md in each sample directory for more specific instructions.

Getting Started

If this is your first time using Cloud ML Engine, we suggest you take a look at the Introduction to ML Engine docs to get started.

Overview

The repository is organized by tasks (Training, Serving, Training and Serving) and each task can be broken down to general usage (CPU/GPU) to specific features: Hyperparameter Tuning and TPUs. Scroll down to see what we have available, each task may provide a code or notebook solution. Where the code solution will have a README guide and the notebook solution is a full walkthrough. Our code guides are designed to provide you with the code and instructions on how to run the code, but leave you to do the digging, where our notebook tutorials try to walk you through the whole process by having the code available in the notebook throughout the guide.

If you don’t see something for the task you’re trying to complete, please head down to our section What do you want to see?

Model Training with Cloud ML Engine

Notebook Tutorial:

  • scikit-learn: Random Forest Classifier - How to train a Random Forest Classifier in scikit-learn using a text based dataset, Census, to predict a person’s income level.
  • XGBoost - How to train an XGBoost model using a text based dataset, Census, to predict a person’s income level.

Code Guide:

Cloud TPUs on ML Engine

Tensor Processing Units (TPUs) are Google’s custom-developed ASICs used to accelerate machine-learning workloads. You can run your training jobs on Cloud Machine Learning Engine, using Cloud TPU.

Hyperparameter Tuning (HP Tuning)

Notebook Tutorial:

  • scikit-learn: Lasso Regressor - How to train a Lasso Regressor in scikit-learn using a text based dataset, auto mpg, to predict a car's miles per gallon.
  • XGBoost: XGBRegressor - How to train a Regressor in XGBoost using a text based dataset, auto mpg, to predict a car's miles per gallon.

Containers

  • Keras: Sequential / Dense - How to train a Keras model using the Nightly Build of TensorFlow on ML Engine using a structured dataset, sonar signals, to predict whether the given sonar signals are bouncing off a metal cylinder or off a cylindrical rock.
  • PyTorch: Deep Neural Network - How to train a PyTorch model on ML Engine using a custom container with a image dataset, mnist, to classify handwritten digits.
  • PyTorch: Sequential - How to train a PyTorch model on ML Engine using a custom container with a structured dataset, sonar signals, to predict whether the given sonar signals are bouncing off a metal cylinder or off a cylindrical rock.
  • PyTorch: Sequential / HP Tuning - How to train a PyTorch model on ML Engine using a custom container and Hyperparameter Tuning with a structured dataset, sonar signals, to predict whether the given sonar signals are bouncing off a metal cylinder or off a cylindrical rock.

Model Serving (Online Predictions)

Notebook Tutorial:

  • scikit-learn: Model Serving - How to train a Random Forest Classifier in scikit-learn on your local machine using a text based dataset, Census, to predict a person’s income level and deploy it on Cloud ML Engine to create predictions.
  • XGBoost: Model Serving - How to train an XGBoost model on your local machine using a text based dataset, Census, to predict a person’s income level and deploy it on Cloud ML Engine to create predictions.

Complete Guide: Model Training and Serving on ML Engine

Code Guide:

Hyperparameter Tuning (HP Tuning)

Code Guide:

Templates

Google Samples

Additional Resources

Cloud TPU: Please see the Cloud TPU guide for how to use Cloud TPU.

What do you want to see?

If you came looking for a sample we don’t have, please file an issue using the Sample / Feature Request template on this repository. Please provide as much detail as possible about the ML Engine sample you were looking for, what framework (Tensorflow, Keras, scikit-learn, XGBoost, ...), the type of model, and what kind of dataset you were hoping to use!

Jump below if you want to contribute and add that missing sample.

How to Contribute

We welcome external sample contributions! To learn more about contributing new samples, checkout our CONTRIBUTING.md guide. Please feel free to add new samples that are built in notebook form or code form with a README guide.

Want to contribute but don't have an idea? Check out our Sample Request Page and assign the issue to yourself so we know you're working on it!

cloudml-samples's People

Contributors

gogasca avatar dizcology avatar puneith avatar puneithk avatar elibixby avatar thedriftofwords avatar ksalama avatar nnegrey avatar happyhuman avatar wenzhel101 avatar fprost avatar elmer-garduno avatar lerrytang avatar remiturpaud avatar sirtorry avatar dan-anghel avatar davidcavazos avatar joshgc avatar lfloretta avatar amygdala avatar eran-levy avatar nwandabridges avatar rhaertel80 avatar chiefkarlin avatar johirbuet avatar zaffnet avatar thebinaryone1 avatar td391 avatar robertsaxby avatar lukashes avatar

Watchers

James Cloos avatar  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.