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

AttributeError: 'CausalImpact' object has no attribute 'trained_model' #53

Open mesut-yasar opened 2 years ago

mesut-yasar commented 2 years ago

Hi, thank you for great work! wanted to check with you, is "trained_model" removed from the latest version of tfcausalimpact? if so, what is the most current method to extract the model details?

WillianFuks commented 2 years ago

Hi @mesut-yasar ,

I'm afraid this version of causal impact never had an attribute trained_model, maybe you were using an older version from another repository.

In this newer version the trained model is really samples from the posterior distribution for each parameter used in the input model. I recommend reading through the getting_started.ipynb notebook for more ideas on how to manipulate those.

Best,

Will