WillianFuks / tfcausalimpact

Python Causal Impact Implementation Based on Google's R Package. Built using TensorFlow Probability.
Apache License 2.0
593 stars 70 forks source link

Type-error #62

Open AruunnAnanda opened 1 year ago

AruunnAnanda commented 1 year ago

Hello there,

All of a sudden I've this type error. The code was running smooth until today morning, but when I tried to rerun the same script in the afternoon, I get the attached error. I tried deleting my virtual environment and, then reinstalling the package, but the same problem persists. Can you please let me know how can I rectify this issue? Screenshot 2022-09-19 at 15 27 21

Thanks, Arun

WillianFuks commented 1 year ago

Hi @AruunnAnanda ,

Could you please send your tensorflow, tensorflow-probability and tfcausalimpact versions?

Lately people have been reporting sudden issues and it seems to be related to newer versions of tf but we couldn't confirm it so far.

AruunnAnanda commented 1 year ago

Hi @WillianFuks ,

Thanks for the prompt response.

Below are my versions :

  1. tensorflow : 2.10.0
  2. tensorflow-probability: 0.14.0
  3. tfcausalimpact : 0.0.11 image
WillianFuks commented 1 year ago

Just wondering, does it work for tensorflow==2.9.2?

AruunnAnanda commented 1 year ago

Yes, it works well with tensorflow==2.9.2

Thanks!

WillianFuks commented 1 year ago

Thanks @AruunnAnanda for the reply. It seems that newer packages of tensorflow are incompatible with the required 0.14 version of tf-probability (this is something that I should fix soon).

I'll leave this open until I fix this issue (hoping to do it asap).

AruunnAnanda commented 1 year ago

Okay, thank you @WillianFuks

WillianFuks commented 1 year ago

Hi @AruunnAnanda ,

I just released a candidate for fixing this issue, could you please check if it solves for you? You can install it by running pip install tfcausalimpact==0.0.12rc0.