WillianFuks / tfcausalimpact

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

ModuleNotFoundError: No module named 'tensorflow_core.estimator' #15

Open amit-dingare opened 3 years ago

amit-dingare commented 3 years ago

WINDOW 10.0 python 3.7 Anaconda Tensorflow verison: 2.4.1

WillianFuks commented 3 years ago

Hi @amitdingareNovelis ,

Not quite sure what's happening there. What might explain the error is that this package doesn't officially support the Windows OS (even though I thought it could work but I never tested it).

Did you also try using a virtual env?

Also, do you have a Docker environment to test it as well? Maybe it'll be the definitive solution for running on Windows I guess.

amit-dingare commented 3 years ago

After several uninstalls and installs of tensorflow and tfcausalimpact package, I was able to make it work. Although, now it generates warnings as below. I see these warnings even for running the example notebooks from the package

WARNING:tensorflow:AutoGraph could not transform <function sample_uniform_initial_state.<locals>.<lambda> at 0x00000170A3EB0168> and will run it as-is.
Please report this to the TensorFlow team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output.
Cause: 'arguments' object has no attribute 'posonlyargs'
To silence this warning, decorate the function with @tf.autograph.experimental.do_not_convert
WARNING: AutoGraph could not transform <function sample_uniform_initial_state.<locals>.<lambda> at 0x00000170A3EB0168> and will run it as-is.
Please report this to the TensorFlow team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output.
Cause: 'arguments' object has no attribute 'posonlyargs'
To silence this warning, decorate the function with @tf.autograph.experimental.do_not_convert
WillianFuks commented 3 years ago

That's good news. Those warnings are part of the Tensorflow packages and we didn't find how to turn them off.