 Method #1

## The holdout method

---

&lt;img src="figs/01-Predicting/all-split-1.png" width="864" /&gt;

???


We refer to the group for which we know the outcome, and use to develop the algorithm, as the training set. We refer to the group for which we pretend we don‚Äôt know the outcome as the test set.

---
class: center

# `initial_split()`

"Splits" data randomly into a single testing and a single training set.


```r
initial_split(data, prop = 3/4)
```


---


```r
ames_split &lt;- initial_spli