1.8 C
Washington

R Interface to Google CloudML

We are excited to announce the availability of the cloudml package, which provides an R interface to Google Cloud Machine Learning Engine. CloudML provides a number of services including on-demand access to training on GPUs and hyperparameter tuning to optimize key attributes of model architectures.

Overview
We are excited to announce the availability of the cloudml package, which provides an R interface to Google Cloud Machine Learning Engine. CloudML provides a number of services including:

Scalable training of models built with the keras, tfestimators, and tensorflow R packages.
On-demand access to training on GPUs, including the new Tesla P100 GPUs from NVIDIA®.
Hyperparameter tuning to optmize key attributes of model architectures in order to maximize predictive accuracy.
Deployment of trained models to the Google global prediction platform that can support thousands of users and TBs of data.

Training with CloudML
Once you’ve configured your system to publish to CloudML, training a model is as straightforward as calling the cloudml_train() function:

library(cloudml)
cloudml_train(“train.R”)

CloudML provides a variety of GPU configurations, which can be easily selected when calling cloudml_train(). For example, the following would train the same model as above but with a Tesla K80 GPU:

cloudml_train(“train.R”, master_type = “standard_gpu”)

To train using a Tesla P100 GPU you would specify “standard_p100”:

cloudml_train(“train.R”, master_type = “standard_p100”)

When training completes the job is collected and a training run report is displayed:

Learning More
Check out the cloudml package documentation to get started with training and deploying models on CloudML.
You can also find out more about the various capabilities of CloudML in these articles:

Training with CloudML goes into additional depth on managing training jobs and their output.
Hyperparameter Tuning explores how you can improve the performance of your models by running many trials with distinct hyperparameters (e.g. number and size of layers) to determine their optimal values.
Google Cloud Storage provides information on copying data between your local machine and Google Storage and also describes how to use data within Google Storage during training.
Deploying Models describes how to deploy trained models and generate predictions from them.

Enjoy this blog? Get notified of new posts by email:

Posts also available at r-bloggers

Reuse
Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don’t fall under this license and can be recognized by a note in their caption: “Figure from …”.
Citation
For attribution, please cite this work as
Allaire (2018, Jan. 10). Posit AI Blog: R Interface to Google CloudML. Retrieved from https://blogs.rstudio.com/tensorflow/posts/2018-01-10-r-interface-to-cloudml/
BibTeX citation
@misc{allaire2018r,
author = {Allaire, J.J.},
title = {Posit AI Blog: R Interface to Google CloudML},
url = {https://blogs.rstudio.com/tensorflow/posts/2018-01-10-r-interface-to-cloudml/},
year = {2018}
}

━ more like this

Newbury BS cuts resi, expat, landlord rates by up to 30bps  – Mortgage Strategy

Newbury Building Society has cut fixed-rate offers by up to 30 basis points across a range of mortgage products including standard residential, shared...

Rate and Term Refinances Are Up a Whopping 300% from a Year Ago

What a difference a year makes.While the mortgage industry has been purchase loan-heavy for several years now, it could finally be starting to shift.A...

Goldman Sachs loses profit after hits from GreenSky, real estate

Second-quarter profit fell 58% to $1.22 billion, or $3.08 a share, due to steep declines in trading and investment banking and losses related to...

Building Data Science Pipelines Using Pandas

Image generated with ChatGPT   Pandas is one of the most popular data manipulation and analysis tools available, known for its ease of use and powerful...

#240 – Neal Stephenson: Sci-Fi, Space, Aliens, AI, VR & the Future of Humanity

Podcast: Play in new window | DownloadSubscribe: Spotify | TuneIn | Neal Stephenson is a sci-fi writer (Snow Crash, Cryptonomicon, and new book Termination...