tidyverts / tidyverts/fabletools
Compute scaled errors for accuracy by series, then summarise.
Open
@mitchelloharawild is already working on this.
Since Jan 12, 2022.
- Dominant language
- R
- Stars
- 98
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
This doesn't look right:
library(fpp3)
fc <- aus_arrivals %>%
filter(year(Quarter) <= 2009) %>%
model(
ets = ETS(Arrivals),
arima = ARIMA(Arrivals)
) %>%
forecast(h=11)
fc %>%
accuracy(aus_arrivals) %>%
select(.model, Origin, MASE)
#> # A tibble: 8 × 3
#> .model Origin MASE
#> <chr> <chr> <dbl>
#> 1 arima Japan 2.95
#> 2 arima NZ 0.576
#> 3 arima UK 2.31
#> 4 arima US 2.46
#> 5 ets Japan 2.90
#> 6 ets NZ 0.656
#> 7 ets UK 1.90
#> 8 ets US 1.53
fc %>%
accuracy(aus_arrivals, by=".model") %>%
select(.model, MASE)
#> # A tibble: 2 × 2
#> .model MASE
#> <chr> <dbl>
#> 1 arima 6.49
#> 2 ets 6.38
Created on 2022-01-12 by the reprex package (v2.0.1)
The second table should be the average of the results by model in the first table.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.