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

Adding test_quantiles hyperparameter to the shell to specify the quan… #1096

Merged
merged 4 commits into from
Oct 19, 2020

Conversation

dcmaddix
Copy link
Contributor

@dcmaddix dcmaddix commented Oct 18, 2020

…tiles for evaluation

Description of changes:

  • Added test_quantiles hyperparameter to the shell to specify the quantiles for evaluation
  • Checks that test_quantiles is a subset of the quantiles model hyperparameter in the MQ-CNN case

Testing:

  • Updated test_train_shell in test/shell/test_shell.py with "quantiles": [0.1, 0.25, 0.5, 0.75, 0.9], "test_quantiles": [0.25, 0.75], gives the following output:
[2020-10-17 19:59:44] [INFO] gluonts.shell.train #test_score (local, ND): 0.09176455073886447
[2020-10-17 19:59:44] [INFO] gluonts.shell.train #test_score (local, wQuantileLoss[0.25]): 0.07710879822434098
[2020-10-17 19:59:44] [INFO] gluonts.shell.train #test_score (local, wQuantileLoss[0.75]): 0.08335938387446934
[2020-10-17 19:59:44] [INFO] gluonts.shell.train #test_score (local, mean_absolute_QuantileLoss): 21.663204583339393
[2020-10-17 19:59:44] [INFO] gluonts.shell.train #test_score (local, mean_wQuantileLoss): 0.08023409104940515
[2020-10-17 19:59:44] [INFO] gluonts.shell.train #test_score (local, mean_wQuantileLoss_WAPE): 0.08407757761255825

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

Copy link
Contributor

@lostella lostella left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Copy link
Contributor

@jaheba jaheba left a comment

Choose a reason for hiding this comment

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

LGTM as well!

@dcmaddix dcmaddix merged commit 613c09e into awslabs:master Oct 19, 2020
@dcmaddix dcmaddix deleted the test_quantiles branch October 19, 2020 19:40
kashif pushed a commit to kashif/gluon-ts that referenced this pull request Dec 15, 2020
awslabs#1096)

* Adding test_quantiles hyperparameter to the shell to specify the quantiles for evaluation

* Using Quantile.parse method to handle 'p50' quantile case

Co-authored-by: Danielle Robinson <dmmaddix@amazon.com>
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.

3 participants