-
Notifications
You must be signed in to change notification settings - Fork 838
Closed
Labels
Description
问题
paddle.io.BatchSampler API文档中有如下问题,希望你可以一起解决:
1.文档解释中:“len: 每epoch中mini-batch数” 不够通畅, 可以更改下描述“每个epoch中,mini-batch的个数”。
2. 英文文档API解释中:which yield mini-batch indices,yield 应该是 yields 。
3. 英文文档API解释中:Batch sampler used by paddle.io.DataLoader should be中Batch sampler 应该是 BatchSampler 。
4. 示例代码中,shuffle 可以设置为 shuffle=True, 并在结果中进行展示。因为大多数情况下都需要将样本打乱顺序,使用shuffle=True的场景更多。
5. 将示例代码使用np创建随机数作为参数输入改为使用 Paddle API 创建随机数。
参考
欢迎你贡献飞桨文档,你可以参考以下内容:
- 中文API文档贡献指南 · PaddlePaddle/docs Wiki
- 英文API文档贡献指南 · PaddlePaddle/docs Wiki
- Home · PaddlePaddle/docs Wiki
再一次感谢你对飞桨的贡献!