You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImportError: cannot import name 'DataGenerator' from 'data_generator' (/Users/xxxx/opt/miniconda3/envs/py3.9/lib/python3.9/site-packages/data_generator/init.py)
Any suggestion on how to fix it?
The text was updated successfully, but these errors were encountered:
I sincerely apologize for my late reply. If you are referring to loading existing datasets from ADBench, please see the code shown below (The dataset needs to be downloaded first).
fromadbench.datasets.data_generatorimportDataGenerator# load cardio dataset w.r.t. the ratio of labeled anomalies=0.05data_generator=DataGenerator(seed=42, dataset='6_cardio')
data=data_generator.generator(la=0.05)
print(data)
ImportError: cannot import name 'DataGenerator' from 'data_generator' (/Users/xxxx/opt/miniconda3/envs/py3.9/lib/python3.9/site-packages/data_generator/init.py)
Any suggestion on how to fix it?
The text was updated successfully, but these errors were encountered: