pymc-labs / pymc-marketing

Bayesian marketing toolbox in PyMC. Media Mix (MMM), customer lifetime value (CLV), buy-till-you-die (BTYD) models and more.
https://www.pymc-marketing.io/
Apache License 2.0
683 stars 190 forks source link

Error when running CLV Quickstart #246

Closed JAGalvis closed 1 year ago

JAGalvis commented 1 year ago

Problem Description

I've been trying to run the quickstart for CLV but the bgm.fit() returns an error. I have used the same code and data from the example, as well as tried with my own data with same results.

Error Message

" 340 # globals, (look for code object in it's co_consts attribute..) and 341 # add the result to code_globals 342 if co.co_consts: IndexError: tuple index out of range "

Environment

OS: Windows Python version: 3.11.3 pymc-marketing==0.1.0

Thanks!!

JAGalvis commented 1 year ago

I created a new environment with Python 3.9 and is running ok.

drbenvincent commented 1 year ago

Thanks for checking out the package - glad it's working now. I'll close this issue, but just send us messages if there's anything else.