-
Notifications
You must be signed in to change notification settings - Fork 274
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】Update rfcs of ContinuousBernoulli and MultivariateNormal API #783
Conversation
@@ -653,9 +653,10 @@ class ContinuousBernoulli(distribution.AutoCompositeTensorDistribution): | |||
|
|||
## 命名与参数设计 | |||
```python | |||
paddle.distribution.continuous_bernoulli(probs) | |||
paddle.distribution.continuous_bernoulli(probability, eps=0.02) |
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.
和PyTorch签名保持一致(logits不用支持), .ContinuousBernoulli(probs=None, lims=(0.499, 0.501),)
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.
已修改
|
||
# 五、设计思路与实现方案 | ||
|
||
## 命名与参数设计 | ||
```python | ||
paddle.distribution.multivariate_normal(loc, sacle) | ||
paddle.distribution.multivariate_normal(loc, covariance_matrix=None, precision_matrix=None, scale_tril=None) |
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.
和PyTorch签名保持一致,class用Pascal写法,MultivariateNormal(loc, covariance_matrix=None, precision_matrix=None, scale_tril=None)
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.
已修改
…20230927_api_design_for_ContinuousBernoulli.md
…0230927_api_design_for_MultivariateNormal.md
@@ -653,9 +653,10 @@ class ContinuousBernoulli(distribution.AutoCompositeTensorDistribution): | |||
|
|||
## 命名与参数设计 | |||
```python | |||
paddle.distribution.continuous_bernoulli(probs) | |||
paddle.distribution.ContinuousBernoulli(probs=None, lims=(0.499, 0.501)) |
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.
probs=None -> probs, probs是必选参数
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.
LGTM
Update rfcs of ContinuousBernoulli and MultivariateNormal API