Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于高斯分布的负对数似然函数 #12

Open
bbc7244 opened this issue Oct 21, 2020 · 3 comments
Open

关于高斯分布的负对数似然函数 #12

bbc7244 opened this issue Oct 21, 2020 · 3 comments

Comments

@bbc7244
Copy link

bbc7244 commented Oct 21, 2020

negative_likelihood = torch.log(sigma + 1) + (z - mu) ** 2 / (2 * sigma ** 2) + 6
新人求教,高斯分布的负对数似然函数的计算公式中的6是怎么来的?sigma为什么要+1?谢谢

@jingw2
Copy link
Owner

jingw2 commented Oct 22, 2020

6是随便设置的一个常识,是为了Likelihood不等于0.sigma+1也是为了不取0

@2017wxyzwxyz
Copy link

@bbc7244,请发给我一份你已经已经调通的基本代码,多谢!我的邮箱地址是[email protected]

@liu311
Copy link

liu311 commented Jul 21, 2024

我训练的深度学习模型的目标函数也是高斯负对数似然,用于回归任务。目前遇到的问题是,损失不收敛,不知道是什么原因?有什么建议吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants