Share
Embed
R and Tensorflow
Talk at OSCON, Portland 2018-07-17
Info: https://conferences.oreilly.com/oscon/oscon-or/public/schedule/detail/71435
Gabriela de Queiroz
July 17, 2018
Transcript
30 slides
-
Slides available at: http://bit.ly/rtensorflow-oscon18 gdequeiroz / mmmpork R + Tensorflow
= Reproducibility, Transparency, & Trust IBM Center for Open-Source Data & AI Technologies (http://codait.org) DBG / July, 2018 / © 2018 IBM Corporation -
Slides available at: http://bit.ly/rtensorflow-oscon18 gdequeiroz / mmmpork • TensorFlow and
R • Tools/Workflows • Reproducibility • Visualization Agenda Speakers 2 GABRIELA DE QUEIROZ Data & AI Developer Advocate, IBM CODAIT [email protected] gdequeiroz https://k-roz.com/ AUGUSTINA RAGWITZ Computational Anthropologist, IBM CODAIT [email protected] mmmpork http://rhappy.fun/ -
Slides available at: http://bit.ly/rtensorflow-oscon18 gdequeiroz / mmmpork What is R?
• Free and Open Source Language and Environment • Popular language for data scientists • It has more extensions than any other data science software • Primary tool for statistical research • RStudio - an IDE with a lot of functionality • Awesome Community (#rstats + R-Ladies + R Forwards) -
Slides available at: http://bit.ly/rtensorflow-oscon18 gdequeiroz / mmmpork TensorFlow APIs Source/Credits:
https://tensorflow.rstudio.com -
Slides available at: http://bit.ly/rtensorflow-oscon18 gdequeiroz / mmmpork Main R Packages
+ Supporting Tools TensorFlow API • keras • tfestimators - Implementations of model types such as regressors and classifiers • tensorflow - Low-level interface to the TensorFlow computational graph • tfdatasets - Work with large datasets Tools • tfruns - Manage experiments (runs) • tfdeploy - Share models across formats • cloudml - Interface to Google Cloud ML -
Slides available at: http://bit.ly/rtensorflow-oscon18 gdequeiroz / mmmpork tfruns Track and
Visualizing Training Runs -
Slides available at: http://bit.ly/rtensorflow-oscon18 gdequeiroz / mmmpork tfruns - Track
and Visualizing Training Runs • Track the hyperparameters, metrics, output, and source code of every training run. • Compare hyperparameters and metrics across runs to find the best performing model. • Generate reports to visualize individual training runs or comparisons between runs. -
Slides available at: http://bit.ly/rtensorflow-oscon18 gdequeiroz / mmmpork tfruns - Track
and Visualizing Training Runs OR -
Slides available at: http://bit.ly/rtensorflow-oscon18 gdequeiroz / mmmpork Tuning hyperparameters -
tfruns::tuning_run() flags = list(256, 20); flags = list(128, 20); flags = list(256, 30); flags = list(128, 30) -
Slides available at: http://bit.ly/rtensorflow-oscon18 gdequeiroz / mmmpork Tuning hyperparameters -
tfruns::tuning_run() The best model is the model #2 with 256 dense units and 30 epochs -
Slides available at: http://bit.ly/rtensorflow-oscon18 gdequeiroz / mmmpork tfdeploy Sharing Models
for Convenient Collaboration • Archive Models for reproducible research • Export and Import Models for later reuse • Deploy Models as a Service -
Slides available at: http://bit.ly/rtensorflow-oscon18 gdequeiroz / mmmpork Archive Models for
Reproducible Research Save in HDF5 or human-readable formats YAML + JSON to use it in R Load saved models for instant reuse -
Slides available at: http://bit.ly/rtensorflow-oscon18 gdequeiroz / mmmpork Export Models Use
export_savedmodel() when you want to use it outside of R -
Slides available at: http://bit.ly/rtensorflow-oscon18 gdequeiroz / mmmpork Explainable AI Show
Your Work for Transparency + Trust • Visualize model layers in Rmarkdown • Regression Analysis with kerasformula::kms() • Introspect blackbox models with LIME -
Slides available at: http://bit.ly/rtensorflow-oscon18 gdequeiroz / mmmpork Put it in
Action! https://blogs.rstudio.com/tensorflow/posts/2018-01-11-keras-customer-churn/ See it live! https://jjallaire.shinyapps.io/keras-customer-churn/ -
DOC ID / Month XX, 2018 / © 2018 IBM
Corporation -
Thank you! codait.org developer.ibm.com/code http://github.com/codait DBG / July , 2018
/ © 2018 IBM Corporation FfDL Sign up for IBM Cloud and try Watson Studio! https://ibm.biz/BdYRNi MAX https://rladies.org/ @RLadiesGlobal