CTGAN icon indicating copy to clipboard operation
CTGAN copied to clipboard

Use the discriminator of the model after training

Open matteoguarrera opened this issue 3 years ago • 7 comments

Problem Description

It seems that the library does not have the possibility to use the discriminator after the training. Is it true?

Expected behavior

I believe that it is possible to add a score function like score_samples(X) that enables the user to see the GAN discriminator output for a given sample.

matteoguarrera avatar Mar 02 '21 19:03 matteoguarrera

Hi @matteoguarrera, you are correct, we currently do not plan to give access to the discriminator after training.

fealho avatar Mar 03 '21 07:03 fealho

Thanks @fealho for the answer. I can do that and request a pull if you are interested.

matteoguarrera avatar Mar 03 '21 09:03 matteoguarrera

I'm glad to hear you would be willing to contribute to the project! Unfortunately, I don't believe this feature is a priority at the moment. Maybe in the future, if more people show interest, we may implement it in SDV, but for now you don't need to worry about it.

fealho avatar Mar 05 '21 00:03 fealho

I think this would be useful too. It could be used for checkpointing and early stopping on a validation set held out of the real dataset.

gagank1 avatar May 04 '21 22:05 gagank1

Would also be interested in using the discriminator afterwards. Is there any chance to save the trained discriminator to rerun it on unseen data?

neuralnets-creator avatar Jan 27 '23 14:01 neuralnets-creator

Same here, even if just to get the model structure of discriminator for documentation purposes.

Deepam-Rai avatar Apr 16 '23 02:04 Deepam-Rai

Hi, I have a great interest on this feature also !

Sylv-Lej avatar Oct 27 '23 09:10 Sylv-Lej