Skip to content

Commit c716235

Browse files
nmdefriesdsweber2
authored andcommitted
clarify changing frosting with model
1 parent 764b7f9 commit c716235

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vignettes/custom_epiworkflows.Rmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,9 @@ prepped <- growth_rate_recipe |>
390390
prepped$term_info |> filter(grepl("gr", variable))
391391
```
392392

393-
To demonstrate the changes in the layers that come along with it, we will use
394-
`quantile_reg()` as the model, which requires changing from `layer_residual_quantiles()` to `layer_quantile_distn()` and `layer_point_from_distn()`:
393+
Let's say we want to use `quantile_reg()` as the model.
394+
Because `quantile_reg()` outputs quantiles only, we need to change our `frosting` to convert a quantile distribution into quantiles and point predictions.
395+
To do that, we need to switch out `layer_residual_quantiles()` (used for converting point + residuals output, e.g. from `linear_reg()` into quantiles) for `layer_quantile_distn()` and `layer_point_from_distn()`:
395396
```{r layer_and_fit}
396397
growth_rate_layers <- frosting() |>
397398
layer_predict() |>

0 commit comments

Comments
 (0)