Open Poulami-Sarkar opened 2 years ago
@Poulami-Sarkar hi, thanks for raising the issue! I cannot reproduce the issue locally.
For brevity, I'm running the example using epochs = 3
in the estimator, and reducing the test dataset in size after it's created, with
from itertools import islice
test_ds = list(islice(test_ds, 20))
This way the code runs in 20 seconds or so. Could you confirm that you get the error also with these changes?
Hello,
I tried the changes you suggested but now I am getting a new error
`Running evaluation: 0%| | 0/20 [00:00<?, ?it/s]
Traceback (most recent call last):
File "
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.
100%|██████████████████████`
@Poulami-Sarkar looks like there are some issues with multiprocessing. You can try two things to fix this:
Running the following on top of your script/notebook
import multiprocessing
multiprocessing.set_start_method('fork')
Or setting
num_workers=None
when constructing the Evaluator
.
I am trying to run the GluonTS tutorial on the M5 dataset. However, the m5 evaluation code is failing. Can someone please help me with the same?
To Reproduce
https://github.com/awslabs/gluon-ts/blob/dev/examples/m5_gluonts_template.ipynb
Error
Environment