Forecasting: principles and practice, 3rd edition-(13.4Prediction combination- Warning message )

I receive a warning message while running the following code in 13.4Prediction combination, how can I solve it?Thanks very munch

cafe_futures <- cafe_models |>

  • Generate 1000 future sample paths

  • generate(h = "5 years", times = 1000) |>
  • Compute forecast distributions from future sample paths

  • as_tibble() |>
  • group_by(Month, .model) |>
  • summarise(
  • dist = distributional::dist_sample(list(.sim))
  • ) |>
  • ungroup() |>
  • Create fable object

  • as_fable(index = Month, key = .model,
  •        distribution = dist, response = "Turnover")

summarise() has grouped output by 'Month'. You can override using the .groups argument.
Warning message :
The dimnames of the fable's distribution are missing and have been set to match the response variables.

Referred here by Forecasting: Principles and Practice, by Rob J Hyndman and George Athanasopoulos

It's just a warning, not an error. The distribution object does not have any dimnames attribute, and fable is just warning you that it has added them. Nothing to worry about.

1 Like

Thanks very much,I feel relieved when I receive your answer!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.