-
Notifications
You must be signed in to change notification settings - Fork 73
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
Process no longer completes #98
Comments
Hi @pkudva-leavened , Just to confirm, are you getting this from version Also, are you using the default model from the package? How big is the dataset in terms of data points? Which OS are you running? |
Hi @WillianFuks Yes, Yes, I am using the default Variational Inference method via the function UPDATE: |
Hi @WillianFuks, I'm still not completely sure what was the problem, but I got it working. Here are the outputs before it eventually outputted the report and plot, for your reference.
|
Running into the same issues as @pkudva-leavened. The default example doesn't even terminate after 5+ minutes. I get the exact same warning:
from tensorflow. import pandas as pd
from causalimpact import CausalImpact
data = pd.read_csv('https://raw.githubusercontent.com/WillianFuks/tfcausalimpact/master/tests/fixtures/arma_data.csv')[['y', 'X']]
data.iloc[70:, 0] += 5
pre_period = [0, 69]
post_period = [70, 99]
ci = CausalImpact(data, pre_period, post_period)
print(ci.summary())
ci.plot() On MacOS 14.4.1, Apple M3 Pro, 36 GB ram. Python 3.11.0. Package version 0.0.15. |
Hi @braydentang1 , Could you please confirm if version 0.0.14 is also having the same issues? We're not certain if this is happening due the latest version updates. |
Version 0.0.14 is having the same issues @WillianFuks |
Experiencing the same issue with both 0.0.14 and 0.0.15. @Wopple figured out that downgrading pyarrow to |
I have been having this same issue where it hangs indefinitely. This was brought in through a transitive dependency elsewhere in my project:
I managed to "fix" it with:
You can likely reproduce with:
and then running the sample code. I have not investigated much further than that since this "works for me." But maybe it helps someone here track down the underlying cause. Edit: Works with |
I've been trying to replicate this issue with no success so far. Please @Wopple could you send us which pandas version you have running when having the issue? The weird thing is that tfci uses |
@WillianFuks https://github.com/Wopple/tfcausalimpact-bug This bug was observed on both apple silicon and x86. |
Hi @Wopple , Thanks for this repo. I installed it locally and still could run with no problems. It seems to be something related to environment but so far I'm out of ideas on how to debug this one. Not sure if downgrading pyarrow was a coincidence, the lib is not a dependency of this project so it shouldn't change outcomes. My suspicion was on mac binary codes but we also have it tested on our CI pipeline which goes just fine. Just out of curiosity, if possible, does the code run for you inside a docker container? |
I just checked and yes, the code runs in a container. It might be a mac-only issue if linux environments are not having a problem. Edit: It is 100% reproducible on my and other's macs though. |
I installed this project a few weeks ago and was able to run it and get results using the default VI and HMC methods for some basic data. Now it doesn't work anymore. There are a couple of deprecation warnings, but I don't remember if they were present since the beginning.
Expected Behavior
Process takes less than 5 minutes to return the summary and plot.
Current Behavior
Process does not complete,
ps
status codeS+
after about 30 seconds of CPU time and stays that waySummary and report are not printed in terminal even after 30 minutes
Context (Environment)
python version 3.10.11
First encountered May 7 on version 0.0.14. Version 0.0.15 did not fix the issue
The text was updated successfully, but these errors were encountered: