SteveDevin ACM ACG CS CV

Machine Learning in Action

2017-09-11
SteveDevin

1.tile(A, reps) A:array like reps: A沿各个维度重复的次数

    from numpy import *

    A = [1, 2]
    tile(A, 3)
    ...array([1, 2, 1, 2, 1, 2])
    tile(A, (2, 3))
    ...array([[1, 2, 1, 2, 1, 2],
              [1, 2, 1, 2, 1, 2]])


上一篇 Linux Configure

下一篇 DFA

Comments