Skip to content

Commit 521756d

Browse files
committed
redocument, pass layer test
1 parent 94de99d commit 521756d

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

man/layer_residual_quantiles.Rd

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/step_adjust_latency.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test-layer_residual_quantiles.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ test_that("Returns expected number or rows and columns", {
2626
nested <- p %>% dplyr::mutate(.quantiles = nested_quantiles(.pred_distn))
2727
unnested <- nested %>% tidyr::unnest(.quantiles)
2828

29-
expect_equal(nrow(unnested), 9L)
30-
expect_equal(unique(unnested$quantile_levels), c(.0275, .8, .95))
29+
expect_equal(nrow(unnested), 12L)
30+
expect_equal(unique(unnested$quantile_levels), c(.0275, .5, .8, .95))
3131
})
3232

3333

@@ -65,9 +65,9 @@ test_that("Grouping by keys is supported", {
6565
expect_warning(p2 <- forecast(wf2))
6666

6767
pivot1 <- pivot_quantiles_wider(p1, .pred_distn) %>%
68-
mutate(width = `0.95` - `0.05`)
68+
mutate(width = `0.9` - `0.1`)
6969
pivot2 <- pivot_quantiles_wider(p2, .pred_distn) %>%
70-
mutate(width = `0.95` - `0.05`)
70+
mutate(width = `0.9` - `0.1`)
7171
expect_equal(pivot1$width, rep(pivot1$width[1], nrow(pivot1)))
7272
expect_false(all(pivot2$width == pivot2$width[1]))
7373
})

0 commit comments

Comments
 (0)