sdv-dev / CTGAN

Conditional GAN for generating synthetic tabular data.
Other
1.27k stars 287 forks source link

How to use SDV Constraints within CTGANSynthesizer Class ? #165

Closed saichaitanyamolabanti closed 3 years ago

saichaitanyamolabanti commented 3 years ago

I have to use CTGANSynthesizer class because it treats discrete and continuous columns separately and while searching online i found constraints can only be included in CTGAN class which comes from SDV library. So, can anyone help me how to utilize Constraints in CTGANSynthesizer class which comes from ctgan library.

csala commented 3 years ago

This was responded on the SDV Slack space, so it can be closed.

Reproducing the response here:

The CTGAN class does actually allow modeling discrete variables. For that you just need to specify their type as categorical. You can see a related question responded here: https://github.com/sdv-dev/SDV/issues/445

Rajeswari-gn commented 1 year ago

I have to use CTGANSynthesizer class because it treats discrete and continuous columns separately and while searching online i found constraints can only be included in CTGAN class which comes from SDV library. So, can anyone help me how to utilize Constraints in CTGANSynthesizer class which comes from ctgan library.

Were you able to solve this problem? Is the solution posted on github?