Skip to content

Commit

Permalink
f-u styler
Browse files Browse the repository at this point in the history
  • Loading branch information
dajmcdon committed Nov 11, 2024
1 parent f075b84 commit 1a4f3e7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
10 changes: 6 additions & 4 deletions vignettes/articles/smooth-qr.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,12 @@ to 7:

```{r, eval = FALSE}
smooth_preds_list <- map(1:7, function(x) {
smooth_fc(edf,
degree = x,
quantiles = c(.1, .25, .5, .75, .9),
fd = fd) %>%
smooth_fc(
edf,
degree = x,
quantiles = c(.1, .25, .5, .75, .9),
fd = fd
) %>%
mutate(degree = x)
}) %>% list_rbind()
```
Expand Down
12 changes: 6 additions & 6 deletions vignettes/epipredict.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ package:

```{r ranger, warning = FALSE}
out_rf <- arx_forecaster(
jhu,
outcome = "death_rate",
jhu,
outcome = "death_rate",
predictors = c("case_rate", "death_rate"),
trainer = rand_forest(mode = "regression")
)
Expand All @@ -270,8 +270,8 @@ Or boosted regression trees with `{xgboost}`:

```{r xgboost, warning = FALSE}
out_gb <- arx_forecaster(
jhu,
outcome = "death_rate",
jhu,
outcome = "death_rate",
predictors = c("case_rate", "death_rate"),
trainer = boost_tree(mode = "regression", trees = 20)
)
Expand All @@ -281,8 +281,8 @@ Or quantile regression, using our custom forecasting engine `quantile_reg()`:

```{r quantreg, warning = FALSE}
out_qr <- arx_forecaster(
jhu,
outcome = "death_rate",
jhu,
outcome = "death_rate",
predictors = c("case_rate", "death_rate"),
trainer = quantile_reg()
)
Expand Down

0 comments on commit 1a4f3e7

Please sign in to comment.