Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing nodes (time-series) in hierarchy: combinef reconciliation function error #60

Closed
som028 opened this issue Oct 22, 2020 · 2 comments

Comments

@som028
Copy link

som028 commented Oct 22, 2020

I am trying to reconcile a set of time series forecast that are already in hierarchal format using combinef.
Issue is there are some missing node (time series) for example A -> AA AB, B -> BA BB, AA-> AAA AAB, BB -> BBA BBB.
As you notice in this example there is not series for AB. In this situation the combinef function is erroring out.
Not sure it should be a new issue or this is an existing issue.
Error in utmat %*% fcasts: Cholmod error 'X and/or Y have wrong dimensions' at file ../MatrixOps/cholmod_sdmult.c, line 90
Traceback:

  1. combinef(fcasts, nodes, weights = NULL, algorithms = "cg",
    . keep = "gts")
  2. CG(fcasts = fcasts, S = smat, weights = weights)
  3. as.matrix(utmat %*% fcasts)
  4. utmat %*% fcasts
  5. utmat %*% fcasts
@robjhyndman
Copy link
Collaborator

Please provide a reproducible example of the problem.

@som028
Copy link
Author

som028 commented Nov 9, 2020

I was able to find a way around the issue by creating dummy duplicate nodes from the parent node for those without any child nodes. Closing the issue. Thanks for quick reply!

@som028 som028 closed this as completed Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants