tfcausalimpact icon indicating copy to clipboard operation
tfcausalimpact copied to clipboard

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

Open mesut-yasar opened this issue 2 years ago • 1 comments

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?

mesut-yasar avatar May 19 '22 17:05 mesut-yasar

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

WillianFuks avatar May 19 '22 19:05 WillianFuks