-
Notifications
You must be signed in to change notification settings - Fork 769
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
新增随机变量变换相关API中文文档 #4642
新增随机变量变换相关API中文文档 #4642
Conversation
Thanks for your contribution! |
…nsform,TanhTransform chinese documents
1e940dc
to
118df85
Compare
AbsTransform | ||
------------------------------- | ||
|
||
.. py:class:: paddle.distribution.Transform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Transform -> AbsTransform()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
ExpTransform | ||
------------------------------- | ||
|
||
.. py:class:: paddle.distribution.ExpTransform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ExpTransform -> ExpTransform()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
.. py:class:: paddle.distribution.IndependentTransform(base, reinterpreted_batch_rank) | ||
|
||
|
||
``IndependentTransform`` 将一个基础变换 ``base`` 的部分批(batch)维 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
|
||
``Multinomial`` 表示实验次数为 ``total_count`` ,概率为 ``probs`` 的多项分布。 | ||
|
||
在概率论中,多项分布是二项分布的多元推广,表示具有 :math:`k` 个类别的事件重复实验 :math:`n` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
|
||
|
||
其中, :math:`n` 表示实验次数, :math:`k` 表示类别数, :math:`p_i` 表示一次实验中,实验结果 | ||
为第 :math:`i` 个类比的概率,需要满足 :math:`{\textstyle \sum_{i=1}^{k}p_i=1}, p_i \ge 0` , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
类比 -> 类别
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
.. py:class:: paddle.distribution.StickBreakingTransform | ||
|
||
``StickBreakingTransform`` 将一个长度为K的向量通过StackBreaking构造过程变换为标准K-单纯 | ||
形。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
放一行里吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
StickBreakingTransform | ||
------------------------------- | ||
|
||
.. py:class:: paddle.distribution.StickBreakingTransform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StickBreakingTransform -> StickBreakingTransform()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
TanhTransform | ||
------------------------------- | ||
|
||
.. py:class:: paddle.distribution.TanhTransform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TanhTransform -> TanhTransform()
|
||
|
||
代码示例 | ||
::::::::: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里是 ExpTransform 这个的示例代码,可以用 COPY: FROM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Transform | ||
------------------------------- | ||
|
||
.. py:class:: paddle.distribution.Transform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Transform -> Transform()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
* add paddle.distribution.Transform chinese document * add paddle.distribution.AbsTransform chinese document * add paddle.distribution.AffineTransform chinese document * add ChainTransform,ExpTransform,IndependentTransform chinese document * add PowerTransform,ReshapeTransform chinese document * add SigmoidTransform,SoftmaxTransform,StackTransform,StickBreakingTransform,TanhTransform chinese documents * add Independent,Multinomial,TransformedDistribution chinese documents * fix transform's APIs format problem
* add paddle.distribution.Transform chinese document * add paddle.distribution.AbsTransform chinese document * add paddle.distribution.AffineTransform chinese document * add ChainTransform,ExpTransform,IndependentTransform chinese document * add PowerTransform,ReshapeTransform chinese document * add SigmoidTransform,SoftmaxTransform,StackTransform,StickBreakingTransform,TanhTransform chinese documents * add Independent,Multinomial,TransformedDistribution chinese documents * fix transform's APIs format problem
新增随机变量变换相关16个API中文文档