GithubHelp home page GithubHelp logo

Comments (4)

npatki avatar npatki commented on May 21, 2024

Hi @tonydp03,

Nice to meet you. From looking at the raw CSV of input data, it seems that there is a leading space before every value. So in this case, the value you're conditioning on should be " Female" (with the leading space) instead of Female (with no space).

BTW if your project allows for it, I would recommend accessing the CTGAN model through the SDV library. The SDV is a publicly available Python SDK that allows you to generate synthetic data using a variety of synthesizers such as CTGAN. It also providers convenient wrappers for data pre- and post-processing, should you want to modify that. And you can use conditional sampling with it too.

Some resources:

from ctgan.

tonydp03 avatar tonydp03 commented on May 21, 2024

Hi @tonydp03,

Nice to meet you. From looking at the raw CSV of input data, it seems that there is a leading space before every value. So in this case, the value you're conditioning on should be " Female" (with the leading space) instead of Female (with no space).

BTW if your project allows for it, I would recommend accessing the CTGAN model through the SDV library. The SDV is a publicly available Python SDK that allows you to generate synthetic data using a variety of synthesizers such as CTGAN. It also providers convenient wrappers for data pre- and post-processing, should you want to modify that. And you can use conditional sampling with it too.

Some resources:

Hi @npatki,

thanks for your answer. I simply assumed the test dataset could be used "out-of-the-box" and didn't notice the leading space at the beginning of the column value. I will give it another try, for sure.

Thanks for the resources too. For the moment, we were just testing the usage of CTGAN to generate synthetic data, as we were positively impressed by the results shown in the paper. In parallel, we're also testing the usage of the SDV library, as it seems an interesting tool.

from ctgan.

tonydp03 avatar tonydp03 commented on May 21, 2024

One more thing: is it correct that, in the main.py, the function fit is called even when the model is loaded? I was expecting for it to be called only when the model has not been trained yet and I'm creating a new one.

from ctgan.

npatki avatar npatki commented on May 21, 2024

Hi @tonydp03 my apologies for getting this reply so late.

The current recommended approach is to use CTGAN via the SDV library as described above. I can answer your usage questions and help you troubleshoot any issues with your project.

Unfortunately I'm unable to go through any detailed lines of code with you. Please also note that some code in the repo may be deprecated or unsupported so I would always recommend the docs for the latest supported usage.

Thanks and please feel free to file a new issue with additional questions or feature requests.

from ctgan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.