dhruvramani / C2AE-Multilabel-Classification

Tensorflow implementation for the paper 'Learning Deep Latent Spaces for Multi-Label Classfications' in AAAI 2017
101 stars 24 forks source link

Why we have 0 value for lambda? #5

Closed bao-dai closed 6 years ago

bao-dai commented 6 years ago

Hi Dhruvramani,

I've checked your code and found that in C2AE-Multilabel-Classification/model/src/network.py, line 79, we should: return tf.norm(Fx-Fe) instread of: return tf.reduce_mean(tf.square(Fx - Fe))

Since in the paper, the authors defined the loss as the Frobenius norm of Fx-Fe (the equation 2). tf.reduce_mean just compute the expected value from all the elements of the input. What do you think in this case 🍡 ?