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

PATECTGAN: dragan_penalty and PAC property #518

Open
ssabdb opened this issue Dec 6, 2022 · 2 comments
Open

PATECTGAN: dragan_penalty and PAC property #518

ssabdb opened this issue Dec 6, 2022 · 2 comments

Comments

@ssabdb
Copy link

ssabdb commented Dec 6, 2022

This commit here seems to have erroneously modified the dragan penalty code from 'c' (which is a hyperparameter for the dragan penalty) to be 'pac'.

Reviewing that commit it seems as if there's something strange happening at the intersection of the pac methodology and the implementation of the dragan penalty. I'm a little mystified by the approach of transposing the array as a fix to make the tensors the right size.

For a pac=1 value this should be just fine (as is the default for PATECTGAN, which I'm curious about the motivations for?), but increasing pac to something else (e.g. 10, as ctgan) seems problematic as it there doesn't seem to be a good reason for the transpositions.

Am I missing something?

@ssabdb ssabdb changed the title PATECTGAN: dragan_penalty and PAC properly PATECTGAN: dragan_penalty and PAC property Dec 6, 2022
@ssabdb
Copy link
Author

ssabdb commented Dec 6, 2022

Erroneous function header is here

Transposition code is here

@joshua-oss
Copy link
Contributor

I also ran into this error when investigating #489. It's likely a bug that was introduced in removing the dependency on the unsupported dev release of ctgan. I'm not as familiar with this code, so I have hesitated to fix it until I have time to really understand what's going on. Perhaps @lurosenb or @AprilXiaoyanLiu can remember.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants