numpy.random.permutation() - 简书
www.jianshu.com › p › 1f50ccfb2b13May 21, 2019 · numpy.random.permutation() Docstring:文档字符串. permutation(x) Randomly permute a sequence, or return a permuted range. 随机产生一个序列,或是返回一个排列范围. If x is a multi-dimensional array, it is only shuffled along its first index. 如果x是一个多维数组,它只会按照第一个索引洗牌. Parameters
numpy.random.permutation — NumPy v1.23.dev0 Manual
numpy.org › numpynumpy.random.permutation. ¶. Randomly permute a sequence, or return a permuted range. If x is a multi-dimensional array, it is only shuffled along its first index. New code should use the permutation method of a default_rng () instance instead; please see the Quick Start. If x is an integer, randomly permute np.arange (x) . If x is an array ...