{"action":"created","issue":{"url":"https://api.github.com/repos/pluskid/Mocha.jl/issues/117","labels_url":"https://api.github.com/repos/pluskid/Mocha.jl/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/pluskid/Mocha.jl/issues/117/comments","events_url":"https://api.github.com/repos/pluskid/Mocha.jl/issues/117/events","html_url":"https://github.com/pluskid/Mocha.jl/issues/117","id":106912149,"number":117,"title":"mathematical error in GaussianKLLossLayer","user":{"login":"jeff-regier","id":8953355,"avatar_url":"https://avatars.githubusercontent.com/u/8953355?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff-regier","html_url":"https://github.com/jeff-regier","followers_url":"https://api.github.com/users/jeff-regier/followers","following_url":"https://api.github.com/users/jeff-regier/following{/other_user}","gists_url":"https://api.github.com/users/jeff-regier/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff-regier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff-regier/subscriptions","organizations_url":"https://api.github.com/users/jeff-regier/orgs","repos_url":"https://api.github.com/users/jeff-regier/repos","events_url":"https://api.github.com/users/jeff-regier/events{/privacy}","received_events_url":"https://api.github.com/users/jeff-regier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-17T04:51:13Z","updated_at":"2015-09-17T08:12:34Z","closed_at":null,"body":"In `GaussianKLLossLayer`, the KL divergence between the Gaussian distributions `N(mu, sigma)` and `N(0, 1)` appears to be incorrect, both in the code and in the documentation.  For example, the KL divergence should contain the term `log(sigma)` and shouldn't contain the term `log(2pi)`.\r\n\r\nhttps://en.wikipedia.org/wiki/Kullback%E2%80%93Leibler_divergence#Kullback.E2.80.93Leibler_divergence_for_multivariate_normal_distributions"},"comment":{"url":"https://api.github.com/repos/pluskid/Mocha.jl/issues/comments/140999558","html_url":"https://github.com/pluskid/Mocha.jl/issues/117#issuecomment-140999558","issue_url":"https://api.github.com/repos/pluskid/Mocha.jl/issues/117","id":140999558,"user":{"login":"benmoran","id":122994,"avatar_url":"https://avatars.githubusercontent.com/u/122994?v=3","gravatar_id":"","url":"https://api.github.com/users/benmoran","html_url":"https://github.com/benmoran","followers_url":"https://api.github.com/users/benmoran/followers","following_url":"https://api.github.com/users/benmoran/following{/other_user}","gists_url":"https://api.github.com/users/benmoran/gists{/gist_id}","starred_url":"https://api.github.com/users/benmoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benmoran/subscriptions","organizations_url":"https://api.github.com/users/benmoran/orgs","repos_url":"https://api.github.com/users/benmoran/repos","events_url":"https://api.github.com/users/benmoran/events{/privacy}","received_events_url":"https://api.github.com/users/benmoran/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T08:12:34Z","updated_at":"2015-09-17T08:12:34Z","body":"That is embarrassing but thank you!  I'll fix it."}}