class: title-slide, center, bottom # Tidymodels, Virtually ## A Short Course ### Alison Hill --- name: clouds2 background-image: url(images/Clouds2.jpg) background-size: cover --- template: clouds2 class: middle, center # <i class="fas fa-crow"></i> https://tmv.netlify.app/site/ --- name: clouds class: center, middle background-image: url(images/Clouds.jpg) background-size: cover --- template: clouds ## .big-text[Hello.] ??? Hello- I'm so happy you could join us today. --- template: clouds class: middle, center ### Alison Hill <img style="border-radius: 50%;" src="https://github.com/apreshill.png" width="150px"/> [
@apreshill](https://github.com/apreshill) [
@apreshill](https://twitter.com/apreshill) [
alison.rbind.io](https://alison.rbind.io) ??? My name is Alison Hill, and I'm a data scientist and professional educator at RStudio. --- class: middle, center, inverse # What is machine learning? --- background-image: url(https://rejoiner.com/resources/wp-content/uploads/2016/06/recommended-thomas.png) background-size: contain --- background-image: url(https://miro.medium.com/max/1400/1*j5aWfH9t1_EZPJC92CJ7oQ.png) background-size: contain .footnote[https://medium.com/tmobile-tech/small-data-big-value-f783ceca4fdb] --- background-image: url(https://techcrunch.com/wp-content/uploads/2017/12/facebook-facial-recognition-photo-review.png?w=730&crop=1) background-size: contain --- class: middle, center # What is machine learning? -- ![](https://imgs.xkcd.com/comics/machine_learning.png )<!-- --> --- class: top, center background-image: url(images/intro.002.jpeg) background-size: cover --- class: top, center background-image: url(images/intro.003.jpeg) background-size: cover --- class: middle, center, frame # Types of Machine Learning Supervised Unsupervised Reinforcement --- class: top, center background-image: url(images/all-of-ml.jpg) background-size: contain .footnote[Credit: <https://vas3k.com/blog/machine_learning/>] --- class: middle, center, frame # Examples of Supervised Learning Spam detection Medical diagnosis Ad click prediction --- class: middle, center, frame # Two modes -- .pull-left[ ## Classification Are you under a stay-at-home order? ] -- .pull-left[ ## Regression How long has your state had stay-at-home orders in place? ] --- class: middle, center, frame # Two cultures .pull-left[ ### Statistics ] .pull-right[ ### Machine Learning ] --- class: middle, center, frame # Quiz ## Which is which? .pull-left[ model first inference emphasis ] .pull-right[ data first prediction emphasis ] --- class: middle, center, frame # Quiz ## Which is which? .pull-left[ model first inference emphasis ### Statistics ] .pull-right[ data first prediction emphasis ### Machine Learning ] --- name: train-love background-image: url(images/train.jpg) background-size: contain background-color: #f6f6f6 --- template: train-love class: center, top # Statistics --- template: train-love class: bottom > *"Statisticians, like artists, have the bad habit of falling in love with their models."* > > — George Box --- class: freight-slide, center, inverse # Predictive modeling --- class: middle, inverse, center # Schedule for Today -- Build a model -- Build better workflows -- Tune better models --- class: inverse, middle, center # tidymodels --- background-image: url(images/tm-org.png) background-size: contain --- ```r library(tidymodels) ## Warning: package 'tidymodels' was built under R version 3.6.2 ## ── Attaching packages ────────────────────────────────────────── tidymodels 0.1.1 ── ## ✓ broom 0.7.0 ✓ recipes 0.1.13 ## ✓ dials 0.0.8 ✓ rsample 0.0.7 ## ✓ dplyr 1.0.2 ✓ tibble 3.0.3 ## ✓ ggplot2 3.3.2 ✓ tidyr 1.1.1 ## ✓ infer 0.5.3 ✓ tune 0.1.1 ## ✓ modeldata 0.0.2 ✓ workflows 0.1.3 ## ✓ parsnip 0.1.3 ✓ yardstick 0.0.7 ## ✓ purrr 0.3.4 ## Warning: package 'broom' was built under R version 3.6.2 ## Warning: package 'dials' was built under R version 3.6.2 ## Warning: package 'scales' was built under R version 3.6.2 ## Warning: package 'dplyr' was built under R version 3.6.2 ## Warning: package 'ggplot2' was built under R version 3.6.2 ## Warning: package 'infer' was built under R version 3.6.2 ## Warning: package 'modeldata' was built under R version 3.6.2 ## Warning: package 'parsnip' was built under R version 3.6.2 ## Warning: package 'purrr' was built under R version 3.6.2 ## Warning: package 'recipes' was built under R version 3.6.2 ## Warning: package 'rsample' was built under R version 3.6.2 ## Warning: package 'tibble' was built under R version 3.6.2 ## Warning: package 'tidyr' was built under R version 3.6.2 ## Warning: package 'tune' was built under R version 3.6.2 ## Warning: package 'workflows' was built under R version 3.6.2 ## Warning: package 'yardstick' was built under R version 3.6.2 ## ── Conflicts ───────────────────────────────────────────── tidymodels_conflicts() ── ## x purrr::discard() masks scales::discard() ## x dplyr::filter() masks stats::filter() ## x dplyr::lag() masks stats::lag() ## x recipes::step() masks stats::step() ``` --- class: inverse, middle, center # To the workshop! 🚀 <i class="fas fa-crow"></i> https://tmv.netlify.app/site/ <i class="fas fa-cloud"></i> http://bit.ly/tmv-rmed2020