-
Notifications
You must be signed in to change notification settings - Fork 135
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
Quick Start Example executes infinitely #520
Comments
Sometimes, when I run the cell with this line |
can you check if there are any .pkl files in the installed package folder |
The file was deleted, but it didn't help. Also I noticed this output in jupiters console when I launch the cell:
|
Also, if I delete .pkl file and run the cell, I recieve in jupyters console a lot of warnings, you can find them by link below |
these logs are expected when you re-compile the pystan model. This will only be done once (when you run the model again, you won't see them anymore). Question: now are you able to run the model? |
No, the problem still remains |
I launched program without using anaconda and here is the output:
|
Same happens for me, |
same issue. DLT example was still running at ~ 10 mins, with INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_982090c5656030fa038b63e5c383dbff NOW. |
I have the same issue. If I convert the notebook to a .py file and run, it works without problems. After running the .py file once I can run the notebook after that. Not sure if the changes I make in the notebook after that will be applied correctly or not (since it seems like the issue is related to how the model is compiled when running the code in the notebook). |
There is an additional compiling step when you first run such model. That's because in the backend stan is compiled in C++ code. After the first time, it stores a pickle object for future use. Hence, you should expect a much slower run time afterward. If you see the log is with something like Perhaps one way is to double check you can run pystan code smoothly. The installation of pystan2 can be found here |
For me the code runs fine if I run it in a .py file, I only get the issue with the model not compiling when I run it in the jupyter notebook (can leave it for several hours without completing). |
The problem of model compiling hanging in jupyter notebook is due to the varied behaviors of multiprocessing across different operating systems and python versions. This problem is usually observed in Windows and python version >= 3.8. There are some similar issue raised for pystan: https://discourse.mc-stan.org/t/pystan-throws-error-when-running-chains-in-parallel-n-jobs-1/17563 (@polinariabar your jupyter error log is similar to this one?) Based on my research, there are two solutions to overcome this:
|
As pointed by @brandoncbryant (#699 (comment)), execute the code in |
Thanks @wangzhishi , multiprocessing setting worked. |
Nothing seems to work for me. If I put the same code in a I have WSL2, Ubuntu 20.04, Python 3.8.10. Multiprocessing doesn't do anything, neither does putting my code in the To reproduce:
|
Describe the bug
Trying to launch example from https://uber.github.io/orbit/tutorials/quick_start.html
The line
dlt.fit(df=train_df)
is executed infinitely (I've been waiting for hours and nothing happened)To Reproduce
Steps to reproduce the behavior:
Code:
Expected behavior
As in the example, I expected the code to compile in few minutes.
Environment (please complete the following information):
pandas==1.1.3
,scikit-learn==0.23.1
,cython==0.29.21
,orbit==1.0.15
The text was updated successfully, but these errors were encountered: