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

Error while generating synthetic data from CGAN #268

Open
Ahmadshahzad2 opened this issue May 21, 2023 · 3 comments
Open

Error while generating synthetic data from CGAN #268

Ahmadshahzad2 opened this issue May 21, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Ahmadshahzad2
Copy link

Describe the bug
after training the model I tried t generate the data but I keep on getting the error "'CGAN' object has no attribute 'generator'"

To Reproduce
Steps to reproduce the behavior:
I am using colab to run the a notebook. Running the following lines of code

muti_class_data_synth = RegularSynthesizer(modelname='cgan', model_parameters=cgan_args)

muti_class_data_synth.load('cgan_multi_model.pkl')

cond_array = pd.DataFrame(100*[1], columns=['label'])

Synthesizer samples are returned in the original format (inverse_transform of internal processing already took place)

sample = muti_class_data_synth.sample(cond_array)

print(sample)

image

@Ahmadshahzad2 Ahmadshahzad2 added the bug Something isn't working label May 21, 2023
@fabclmnt
Copy link
Contributor

Hi @Ahmadshahzad2 ,

thank you for your issue. Can you please confirm me the following info:

  • What are the other packages you might have installed in your environment
  • What ydata-synthetic version are you using?
  • Can you please share the full code snippet? Including your synth training?

@Ahmadshahzad2
Copy link
Author

Ahmadshahzad2 commented May 22, 2023

Hi @fabclmnt,

The environment only has the packages that were installed during installation of ' ydata-synthetic'. I downloaded the latest version "1.1.0".

image

@fabclmnt
Copy link
Contributor

Can you please share the whole code of even a python notebook so we can replicate the behaviour?

thank you for your understanding!

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

2 participants