乱序函数
在机器学习中为了防止模型学习到样本顺序这些影响泛化能力的特征,通常在模型进行训练之前打乱样本顺序。...'numpy.ndarray'>, a:[1 4 2 0 3]
>>> print(f"the type of b:{type(b)}, b:{b}")
the type of b:, b:[0 1 3 4 2]
>>> print(f"the type of b2:{type(b2)}, b2:{b2}")
the type of b2:, b2:[1 3 5 4 2]
>>> print(f"the type of b3:{type(b3)}, b3:{b3}")
the type of b3:<class 'numpy.ndarray...此时原始的二维数组b = array([[0, 1], [2, 3], [4, 5]]),是一个 3 行 4 列的二维数组,将每一行看成是一个整体,可以分成[0, 1], [2, 3]和[4, 5]三个整体