https://github.com/nixtla logo
#general
Title
# general
l

Lewis Livingston

08/07/2023, 8:16 PM
Can I run Hierarchical Forecast, Neural Forecast, and MLForecast locally rather than with multiprocessing? I get the following error when running the code straight from the reconcilliation quick start in Hierarchical Forecast. RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase. 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.
k

Kevin Kho

08/07/2023, 8:46 PM
Yeah this is recommending you use the
if __name__ == '__main__':
guard So:
Copy code
if __name__ == '__main__':
    # forecast code here
l

Lewis Livingston

08/07/2023, 10:09 PM
Thank you! Sorry for the rookie question. I added the guard you mentioned, and the issue was resolved however I am now getting the following error. Exception: Please include
NBEATS-median
prediction intervals in
Y_hat_df
k

Kevin Kho

08/07/2023, 10:26 PM
Ah this I am not familiar with
I suggest you post a new msg btw
Do you have code to reproduce?
2 Views