-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 6th No.6】为 Paddle 新增 StudentT API -part #64294
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
sample_mean = samples.mean(axis=0) | ||
sample_variance = samples.var(axis=0) | ||
|
||
np.testing.assert_allclose( |
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.
已添加注释
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.
这个经验值要在rfc同步更新,并将由来说清楚
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.
) | ||
var = paddle.where( | ||
nan_index, paddle.full_like(var, fill_value=float('nan')), var | ||
) |
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.
任何情况下,此处两个paddle.where op都会进行判断执行。一般而言对于判断分支需要将概率最大的分支放在最前面,即df在1和2之间概率应该默认是最频繁的场景,调整下写法。此外命名nan_index是不是有点怪,中文名“nan索引”,但其实际是作为paddle.where的condition参数
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 |
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
Sorry to inform you that 82e7413's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
* :math:`scale = \sigma`: is the scale parameter. | ||
* :math:`\Gamma(\cdot)`: is the gamma function. | ||
|
||
Args: |
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.
name
参数描述加一下
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 for docs
PR Category
User Experience
PR Types
New features
Description
新增 StudentT 分布类
rfc: https://github.com/PaddlePaddle/community/blob/master/rfcs/APIs/20240428_api_design_for_StudentT.md