mindspore/docs/api/api_python/dataset/mindspore.dataset.Shuffle.rst

14 lines
724 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.dataset.Shuffle
=========================
.. py:class:: mindspore.dataset.Shuffle
指定混洗模式的枚举类。
- **Shuffle.FALSE** - 关闭数据集混洗。
- **Shuffle.ADAPTIVE** - 当数据集样本小于等于1亿时采用 ``Shuffle.GLOBAL`` 当大于1亿时采用局部 ``Shuffle.PARTIAL`` 每100万样本混洗一次。
- **Shuffle.GLOBAL** - 执行全局混洗,一次性混洗数据集中所有样本。
- **Shuffle.PARTIAL** - 执行局部混洗每100万个样本混洗一次。
- **Shuffle.FILES** - 仅混洗文件,不混洗文件中的数据。
- **Shuffle.INFILE** - 保持读入文件的序列,仅混洗每个文件中的数据。