Prinsphield/ELEGANT

Loss function inconsistent with the article

CharlesNord opened this issue · 2 comments

self.loss_D = (self.D_loss['D1'] + 0.5 * self.D_loss['D2']) / 4

In your code , the loss function of discriminator is not the same as in the paper. The weight of losses from two discriminators are not equal, is this setting important and could lead to a better performance?

For simplicity, the paper neglects the coefficient in each loss term. Because the overall design is towards the right way, so it will work finally.

Actually, I have not tried other coefficients. It may lead to better performance. You may adjust the coefficient accordingly when the total number of attributes or the training attributes get changed in order to obtain better performance.

For simplicity, the paper neglects the coefficient in each loss term. Because the overall design is towards the right way, so it will work finally.

Actually, I have not tried other coefficients. It may lead to better performance. You may adjust the coefficient accordingly when the total number of attributes or the training attributes get changed in order to obtain better performance.

I get it, thank you very much for your reply