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

num_sample variation fixes #421

Merged
merged 6 commits into from
Nov 8, 2019
Merged

Conversation

benidis
Copy link
Contributor

@benidis benidis commented Nov 5, 2019

Fixes issue #301 (following #232).

@benidis benidis requested a review from lostella November 5, 2019 18:47
@lostella
Copy link
Contributor

lostella commented Nov 5, 2019

Looks like this broke the tests for shell: looking at the logs it seems that the num_samples configuration is not catched and 100 samples (the default somewhere?) get produced instead of 4

@lostella lostella requested a review from jaheba November 6, 2019 10:39
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.

src/gluonts/model/forecast.py Outdated Show resolved Hide resolved
@@ -169,11 +168,11 @@ def __init__(
use_default_time_features: bool = True,
num_default_time_features: int = 1,
feature_scale: float = 1000.0,
num_parallel_samples: int = 100,
num_samples: int = 100,
Copy link
Contributor

Choose a reason for hiding this comment

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

My proposal was to remove this from the constructor of predictors, and keep it only as an argument to the predict method, see #301

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! παρακαλώ!

@benidis benidis merged commit af42ef0 into awslabs:master Nov 8, 2019
tm1611 added a commit to tm1611/gluon-ts that referenced this pull request Nov 9, 2019
Incorporate change in awslabs#421 to this example.
@tm1611 tm1611 mentioned this pull request Nov 9, 2019
lostella pushed a commit that referenced this pull request Nov 9, 2019
Incorporate change in #421 to this example.
FadhelA pushed a commit to FadhelA/gluon-ts that referenced this pull request Nov 29, 2019
* fix num_sample variations
FadhelA pushed a commit to FadhelA/gluon-ts that referenced this pull request Nov 29, 2019
Incorporate change in awslabs#421 to this example.
@benidis benidis deleted the num_samples_naming branch July 3, 2020 10:39
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