lightweight_mmm icon indicating copy to clipboard operation
lightweight_mmm copied to clipboard

AttributeError: module 'lightweight_mmm' has no attribute 'LightweightMMM'

Open kiran-akkineni opened this issue 2 years ago • 3 comments

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'

kiran-akkineni avatar Jan 20 '23 05:01 kiran-akkineni

Hi @kiran-akkineni

Thanks for reaching out! This is odd. Spell looks correct.

Could you uninstall and install the package and try again?

statm3n avatar Jan 20 '23 22:01 statm3n

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

kiran-akkineni avatar Jan 23 '23 21:01 kiran-akkineni