<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/r-interface-to-google-cloudml/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://tensorflow.rstudio.com/blog/r-interface-to-cloudml.html"> TensorFlow for R</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<div>
<h2>Overview</h2>
<div>
<img align="right" src="https://i1.wp.com/tensorflow.rstudio.com/blog/images/r-interface-to-cloudml/cloudml.png?w=200&ssl=1" data-recalc-dims="1">
</div>
<p>We are excited to announce the availability of the <a rel="nofollow" href="https://tensorflow.rstudio.com/tools/cloudml" target="_blank">cloudml</a> package, which provides an R interface to <a rel="nofollow" href="https://cloud.google.com/ml-engine" target="_blank">Google Cloud Machine Learning Engine</a>. CloudML provides a number of services including:</p>
<ul>
<li>
<p>Scalable training of models built with the <a rel="nofollow" href="https://keras.rstudio.com/" target="_blank">keras</a>, <a rel="nofollow" href="https://tensorflow.rstudio.com/tfestimators" target="_blank">tfestimators</a>, and <a rel="nofollow" href="https://tensorflow.rstudio.com/" target="_blank">tensorflow</a> R packages.</p>
</li>
<li>
<p>On-demand access to training on GPUs, including the new <a rel="nofollow" href="http://www.nvidia.com/object/tesla-p100.html" target="_blank">Tesla P100 GPUs</a> from NVIDIA®.</p>
</li>
<li>
<p>Hyperparameter tuning to optmize key attributes of model architectures in order to maximize predictive accuracy.</p>
</li>
<li>
<p>Deployment of trained models to the Google global prediction platform that can support thousands of users and TBs of data.</p>
</li>
</ul>
</div>
<div>
<h2>Training with CloudML</h2>
<p>Once you’ve configured your system to publish to CloudML, training a model is as straightforward as calling the <code><a rel="nofollow" href="https://tensorflow.rstudio.com/tools/cloudml/reference/cloudml_train.html" target="_blank">cloudml_train()</a></code> function:</p>
<div>
<pre><code><span>library</span>(cloudml)
<span><a rel="nofollow" href="https://tensorflow.rstudio.com/tools/cloudml/reference/cloudml_train.html" target="_blank">cloudml_train</a></span>(<span>&quot;train.R&quot;</span>)</code></pre>
</div>
<p>CloudML provides a variety of GPU configurations, which can be easily selected when calling <code><a rel="nofollow" href="https://tensorflow.rstudio.com/tools/cloudml/reference/cloudml_train.html" target="_blank">cloudml_train()</a></code>. For example, the following would train the same model as above but with a <a rel="nofollow" href="http://www.nvidia.com/object/tesla-k80.html" target="_blank">Tesla K80 GPU</a>:</p>
<div>
<pre><code><span><a rel="nofollow" href="https://tensorflow.rstudio.com/tools/cloudml/reference/cloudml_train.html" target="_blank">cloudml_train</a></span>(<span>&quot;train.R&quot;</span>, <span>master_type =</span> <span>&quot;standard_gpu&quot;</span>)</code></pre>
</div>
<p>To train using a <a rel="nofollow" href="http://www.nvidia.com/object/tesla-p100.html" target="_blank">Tesla P100 GPU</a> you would specify <code>&quot;standard_p100&quot;</code>:</p>
<div>
<pre><code><span><a rel="nofollow" href="https://tensorflow.rstudio.com/tools/cloudml/reference/cloudml_train.html" target="_blank">cloudml_train</a></span>(<span>&quot;train.R&quot;</span>, <span>master_type =</span> <span>&quot;standard_p100&quot;</span>)</code></pre>
</div>
<p>When training completes the job is collected and a training run report is displayed:</p>
<div>
<img src="https://i2.wp.com/tensorflow.rstudio.com/blog/images/r-interface-to-cloudml/training-run.png?w=450&ssl=1" data-recalc-dims="1">
</div>
<p></p>
</div>
<div>
<h2>Learning More</h2>
<p>Check out the <a rel="nofollow" href="https://tensorflow.rstudio.com/tools/cloudml" target="_blank">cloudml package documentation</a> to get started with training and deploying models on CloudML.</p>
<p>You can also find out more about the various capabilities of CloudML in these articles:</p>
<ul>
<li>
<p><a rel="nofollow" href="https://tensorflow.rstudio.com/tools/cloudml/articles/training.html" target="_blank">Training with CloudML</a> goes into additional depth on managing training jobs and their output.</p>
</li>
<li>
<p><a rel="nofollow" href="https://tensorflow.rstudio.com/tools/cloudml/articles/tuning.html" target="_blank">Hyperparameter Tuning</a> 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.</p>
</li>
<li>
<p><a rel="nofollow" href="https://tensorflow.rstudio.com/tools/cloudml/articles/storage.html" target="_blank">Google Cloud Storage</a> provides information on copying data between your local machine and Google Storage and also describes how to use data within Google Storage during training.</p>
</li>
<li>
<p><a rel="nofollow" href="https://tensorflow.rstudio.com/tools/cloudml/articles/deployment.html" target="_blank">Deploying Models</a> describes how to deploy trained models and generate predictions from them.</p>
</li>
</ul>
</div>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://tensorflow.rstudio.com/blog/r-interface-to-cloudml.html"> TensorFlow for R</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/leDUUGcQ5V4" height="1"></a></div>