Open yangmiemiemie1 opened 1 year ago
Hi, This code is directly copied from the official implementation code of the paper Improving Multimodal Fusion with Hierarchical Mutual Information Maximization for Multimodal Sentiment Analysis, Please refer to the official implement here.
We also find some other errors in symbols (including the Eq. (3) $I(X;Y) =E{p(x,y)} [\log \frac{q(y|x)}{p(y)} ]+ E{p(\mathbf{y})}[KL(p(y|x) || q(y|x))]$ Should be modified as $I(X;Y) =E{p(x,y)} [\log \frac{q(y|x)}{p(y)} ]+ E{p(\mathbf{x})}[KL(p(y|x) || q(y|x))]$ . But for your question, the "-(lnσ + C) items"
(If you want to further discuss the problem, you can find me through email: yzq21@mails.tsinghua.edu.cn)
positive = -(mu - y)**2/2./torch.exp(logvar) Is "positive" vector (above in line 152) for the p(y|x) ~ N(y|µθ1(x), σ2 (x) I)? where is the -(lnσ + C) items in the probability density function for Normal distribution ?Why is it missing?