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

【Hackathon 5th No.19】Add ContinuousBernoulli and MultivariateNormal API #6392

Merged
merged 7 commits into from
Dec 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update docs
NKNaN committed Dec 13, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 754bef85a308d0ed1f254082933248926bfaf01d
8 changes: 4 additions & 4 deletions docs/api/paddle/distribution/ContinuousBernoulli_cn.rst
Original file line number Diff line number Diff line change
@@ -80,7 +80,7 @@ prob(value)

**返回**

- Tensor: :attr:`value` 的概率。数据类型与 :attr:`probability` 相同。
- Tensor: :attr:`value` 的概率。数据类型与 `self.probability` 相同。


log_prob(value)
@@ -94,7 +94,7 @@ log_prob(value)

**返回**

- Tensor: :attr:`value` 的对数概率。数据类型与 :attr:`probability` 相同。
- Tensor: :attr:`value` 的对数概率。数据类型与 `self.probability` 相同。


cdf(value)
@@ -119,7 +119,7 @@ cdf(value)

**返回**

- Tensor: :attr:`value` 的累积分布函数对应的 quantile 值。数据类型与 :attr:`probability` 相同。
- Tensor: :attr:`value` 的累积分布函数对应的 quantile 值。数据类型与 `self.probability` 相同。


icdf(value)
@@ -143,7 +143,7 @@ icdf(value)

**返回**

- Tensor: ContinuousBernoulli 随机变量在对应 quantile 下的值。数据类型与 :attr:`probability` 相同。
- Tensor: ContinuousBernoulli 随机变量在对应 quantile 下的值。数据类型与 `self.probability` 相同。


sample(shape=())
12 changes: 6 additions & 6 deletions docs/api/paddle/distribution/MultivariateNormal_cn.rst
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ prob(value)

**返回**

- Tensor: :attr:`value` 的概率。数据类型与 :attr:`loc` 相同。
- Tensor: :attr:`value` 的概率。数据类型与 `self.loc` 相同。


log_prob(value)
@@ -88,7 +88,7 @@ log_prob(value)

**返回**

- Tensor: :attr:`value` 的对数概率。数据类型与 :attr:`loc` 相同。
- Tensor: :attr:`value` 的对数概率。数据类型与 `self.loc` 相同。


sample(shape=())
@@ -102,7 +102,7 @@ sample(shape=())

**返回**

- Tensor:样本数据。其维度为 :math:`\text{sample shape} + \text{batch shape} + \text{event shape}` 。数据类型为 paddle 全局默认数据类型
- Tensor:样本数据。其维度为 :math:`\text{sample shape} + \text{batch shape} + \text{event shape}` 。数据类型与 `self.loc` 相同


rsample(shape=())
@@ -116,7 +116,7 @@ rsample(shape=())

**返回**

- Tensor:样本数据。其维度为 :math:`\text{sample shape} + \text{batch shape} + \text{event shape}` 。数据类型为 paddle 全局默认数据类型
- Tensor:样本数据。其维度为 :math:`\text{sample shape} + \text{batch shape} + \text{event shape}` 。数据类型与 `self.loc` 相同


entropy()
@@ -130,7 +130,7 @@ entropy()

**返回**

类别分布的信息熵,数据类型为 paddle 全局默认数据类型
类别分布的信息熵,数据类型与 `self.loc` 相同


kl_divergence(other)
@@ -148,4 +148,4 @@ kl_divergence(other)

**返回**

相对于另一个类别分布的 KL 散度,数据类型为 paddle 全局默认数据类型
相对于另一个类别分布的 KL 散度,数据类型与 `self.loc` 相同