Comments (4)
The discriminator uses the PacGAN framework to prevent mode collapse with pack size 10. @csala The docstring can be updated to clarify this restriction, the batch size must be divisible by the pack_size
.
from ctgan.
In my tests, batch size needs to be a multiple of 10. I don't recall why this issue was again specifically.
from ctgan.
In addition, batch_size
option should be moved to fit
function instead of in the CTGANSynthesizer
ctor.
Now:
ctgan = CTGANSynthesizer(batch_size=128)
How it should be (IMHO):
ctgan.fit(data, discrete_columns, epochs=3, batch_size=128)
from ctgan.
The discriminator uses the PacGAN framework to prevent mode collapse with pack size 10. @csala The docstring can be updated to clarify this restriction, the batch size must be divisible by the
pack_size
.
Thanks @k15z, I opened an issue on SDV to add this to the CTGAN model documentation, so I'm closing this one for now.
In addition,
batch_size
option should be moved tofit
function instead of in theCTGANSynthesizer
ctor.
Now:
ctgan = CTGANSynthesizer(batch_size=128)
How it should be (IMHO):
ctgan.fit(data, discrete_columns, epochs=3, batch_size=128)
Thanks for the suggestion @elisim, but this was discussed a long time ago and we decided to move in another direction, so we will try to keep the hyperparameter organization as it is right now.
Also, bear in mind that we are pushing it even further when using CTGAN from SDV, where all the hyperparameters and setup arguments are passed when the model is created and the only input argument for the fit
method is the data to which the model is fitted.
from ctgan.
Related Issues (20)
- Avoid generating the conditional column
- Add support for Python 3.11
- Add progress bar for CTGAN fitting (+ save the loss values)
- Question about large amount of training dataset in TVAE -- is there max? HOT 1
- Add verbosity TVAE (progress bar + save the loss values)
- Condition with inequality for continuous columns
- Drop support for Python 3.7
- Question regarding CTGAN for data synthesis and classification tasks
- Tracking and Saving TVAE Loss Values HOT 2
- Set generator to eval mode before sampling?
- Switch default branch from master to main
- Remove or implement CTGAN tests
- `ClusterBasedNormalizer` refactor
- Hyperparameters
- Doubts on the usage of conditional sampling HOT 4
- Support Python 3.12
- Tune about CTGAN
- TypeError while ctgan.fit() HOT 6
- Improve DataSampler efficiency
- ValueError: mismatch of shapes when sampling data for compas dataset HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ctgan.