You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a consequence of this line, if the data is shorter than the batch_size TVAE does nothing during the training and results in a model that kept the initialization weights, unoptimized.
Fix
The indicated line could be changed to something like this which:
Reduces the batch size to the data length if the data has less rows than the batch size
Drops the last batch only if the data size is not divisible by the batch size
Environment Details
Please indicate the following details about the environment in which you found the bug:
Error Description
Current TVAE fails to be fitted on datasets that are shorter than the batch size (and it does it silently).
The culprit is the
drop_last=True
in this line:CTGAN/ctgan/synthesizers/tvae.py
Line 113 in 38f0d30
As a consequence of this line, if the data is shorter than the
batch_size
TVAE does nothing during the training and results in a model that kept the initialization weights, unoptimized.Fix
The indicated line could be changed to something like this which:
The text was updated successfully, but these errors were encountered: