lightweight_mmm
lightweight_mmm copied to clipboard
AttributeError: module 'lightweight_mmm' has no attribute 'LightweightMMM'
Trying to run a simple example for this in Jupyter:
import lightweight_mmm as mmm import pandas as pd
Read in the data from the CSV file
data = pd.read_csv('media_mix_data.csv')
Create the media mix model
mmm_model = mmm.LightweightMMM()
Getting the following error:
AttributeError Traceback (most recent call last) Cell In[27], line 2 1 # Create the media mix model ----> 2 mmm_model = mmm.LightweightMMM()
AttributeError: module 'lightweight_mmm' has no attribute 'LightweightMMM'
Hi @kiran-akkineni
Thanks for reaching out! This is odd. Spell looks correct.
Could you uninstall and install the package and try again?
I believe I had to use the below to get it to work. I will try again after reinstalling to see if anything changes...
from lightweight_mmm import lightweight_mmm