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

数学公式好像不会换行,导致过长 #213

Closed
KureiSersen opened this issue Feb 12, 2024 · 3 comments
Closed

数学公式好像不会换行,导致过长 #213

KureiSersen opened this issue Feb 12, 2024 · 3 comments

Comments

@KureiSersen
Copy link

Xnip2024-02-12_23-39-31

markdown原文:
$$
相对熵,又称KL散度,可以用于衡量两个分布的差异\
假设真是模型为p(x),而我们求解得到的模型是q(x),\
那么我们就可以用p(x)与q(x)的相对熵作为LOSS函数\
D_{KL}(p||q) =-\sum\limits_{x}^{}p(x)log_b\enspace p(x)-\sum\limits_{x}^{}p(x)log_b\enspace q(x)\
其中p(x)为常数,我们仅需使-\sum\limits_{x}^{}p(x)log_b\enspace q(x)部分最小,即可获得最优模型
$$

@nanxiaobei
Copy link
Owner

网页地址贴一下

@nanxiaobei
Copy link
Owner

nanxiaobei commented Feb 14, 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

2 participants