代码拉取完成,页面将自动刷新
.. py:class:: mindspore.dataset.SubsetRandomSampler(indices, num_samples=None) 给定样本的索引序列,从序列中随机获取索引对数据集进行采样。 参数: - **indices** (Iterable) - 样本索引的序列(除了string类型外的任意Python可迭代对象类型)。 - **num_samples** (int, 可选) - 获取的样本数,可用于部分获取采样得到的样本。默认值: ``None`` ,获取采样到的所有样本。 异常: - **TypeError** - `indices` 的类型不是int。 - **TypeError** - `num_samples` 的类型不是int。 - **ValueError** - `num_samples` 为负值。 .. include:: mindspore.dataset.BuiltinSampler.rst
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。