h, estimate = .pred)
```

]

---
class: middle, center

# `fit_split()`

Trains and tests a model with split data. Returns a tibble.



```r
fit_split(Sale_Price ~ Gr_Liv_Area, model, split)
```




---

```r
lm_split &lt;- fit_split(Sale_Price ~ Gr_Liv_Area, 
                      model = lm_spec, 
*                     split = ames_split)

lm_split
## # # Monte Carlo cross-validation (0.75/0.25) with 1 resamples  
## # A tibble: 1 x 6
##   splits        id           .metrics      .notes      .predictions 