Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Creating synthetic data via CGAN #331

Open
Feinster opened this issue Apr 5, 2024 · 0 comments
Open

[BUG] Creating synthetic data via CGAN #331

Feinster opened this issue Apr 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Feinster
Copy link

Feinster commented Apr 5, 2024

Describe the bug
I tried to create synthetic data with CGAN, but an exception is thrown. I tried running your example file and the same error occurs.

  File "D:\Program Files\JetBrains\PyCharm 2023.3.4\plugins\python\helpers\pydev\pydevd.py", line 1534, in _exec
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "D:\Program Files\JetBrains\PyCharm 2023.3.4\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "D:\Users\Matteo\Documents\GitHub\Artificial-Intelligence-Applications-for-Healthcare\prova.py", line 69, in <module>
    synth = RegularSynthesizer(modelname='cgan', model_parameters=gan_args)
  File "C:\Users\matte\AppData\Roaming\Python\Python310\site-packages\ydata_synthetic\synthesizers\regular\model.py", line 56, in __new__
    model=Model(modelname).function(model_parameters, **kwargs)
  File "C:\Users\matte\AppData\Roaming\Python\Python310\site-packages\ydata_synthetic\synthesizers\regular\cgan\model.py", line 32, in __init__
    super().__init__(model_parameters)
TypeError: object.__init__() takes exactly one argument (the instance to initialize)

To Reproduce
Run the file https://github.com/ydataai/ydata-synthetic/blob/dev/examples/regular/models/creditcard_cgan.py
(the dataset link is no longer available, download it locally)

Desktop (please complete the following information):

  • OS: Windows
  • Python: 3.10.14
  • ydata-synthetic: 1.3.2
@Feinster Feinster added the bug Something isn't working label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant