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

[Hierarchical] Allow computing projection based on a non-Euclidean norm #2961

Merged
merged 7 commits into from
Aug 15, 2023

Conversation

rshyamsundar
Copy link
Contributor

Issue #, if available:

Description of changes:
Currently the forecasts are reconciled by projecting them on to the feasible set based on the Euclidean norm. Sometimes it is desirable to weigh the distances (errors) between the unreconciled and reconciled forecasts differently for each level (because there are more number of terms for the bottom level compared to the top level).

This PR adds an option to provide such weights via a diagonal matrix.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Please tag this pr with at least one of these labels to make our release process faster: BREAKING, new feature, bug fix, other change, dev setup

@melopeo
Copy link
Contributor

melopeo commented Aug 11, 2023

Can we add tests to be sure that the new introduced projection matrix is indeed projecting into the subspace of reconciled samples?

Places where these tests could be added are:

@@ -109,6 +127,12 @@ class DeepVARHierarchicalEstimator(DeepVAREstimator):
Length of the prediction horizon
S
Summation or aggregation matrix.
D
Positive definite matrix (typically a diagonal matrix). Optional.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we specify "symmetric" positive definite matrix?

@rshyamsundar rshyamsundar enabled auto-merge (squash) August 15, 2023 13:17
@rshyamsundar rshyamsundar merged commit 3ae0ac4 into awslabs:dev Aug 15, 2023
18 of 21 checks passed
@rshyamsundar rshyamsundar deleted the orth-proj branch August 15, 2023 13:19
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

Successfully merging this pull request may close these issues.

2 participants