abdullahkarasan / mlfrm

Other
71 stars 47 forks source link

Chapter 10. cannot import ctgan #11

Open LeeChang-Soo opened 1 year ago

LeeChang-Soo commented 1 year ago

As below error message, ctgan library cannot import CTGANSynthesizer

This code was exercised in Google colab and the same error occurred in my Anaconda (python version = 3.8)


from ctgan import CTGANSynthesizer

ctgan = CTGANSynthesizer(epochs=10) ctgan.fit(california_housing_df) synt_sample = ctgan.sample(len(california_housing_df))


ImportError Traceback (most recent call last)

in () ----> 1 from ctgan import CTGANSynthesizer 2 3 ctgan = CTGANSynthesizer(epochs=10) 4 ctgan.fit(california_housing_df) 5 synt_sample = ctgan.sample(len(california_housing_df)) ImportError: cannot import name 'CTGANSynthesizer' from 'ctgan' (/usr/local/lib/python3.10/dist-packages/ctgan/__init__.py) --------------------------------------------------------------------------- NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt. To view examples of installing some common dependencies, click the "Open Examples" button below. ---------------------------------------------------------------------------