-
Notifications
You must be signed in to change notification settings - Fork 272
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 No.8】为 Paddle 新增 Gumbel API #254
Conversation
…nity into add_gumbel_api
# 六、测试和验收的考量 | ||
`GumbelTest`继承`unittest.TestCase`类中的方法,参考NormalTest的示例,新增一个`GumbelNumpy`类来验证`Gumbel` API的正确性。 | ||
- 使用相同的参数实例化 `Gumbel` 类和 `GumbelNumpy` 类,分别调用 `mean`、`variance`、`stddev`、`prob`、`log_prob`、`entropy`方法。将输出的结果进行对比,允许有一定的误差。 | ||
- 使用sample方法对多个样本进行测试。 |
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.
考虑并补充样本测试方法,即生成的样本是否真实满足Gmbel分布,如常用KS检验、直方图检验等
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
PaddlePaddle Hackathon 第三期 No.8 新增Gumbel分布API