2016-06-27 12 views

Antwort

1

Verwendung von dask.array.concatenate() könnte eine mögliche Problemumgehung sein.

Demo in NumPy:

In [374]: x = numpy.arange(4).reshape((2, 2)) 

In [375]: x 
Out[375]: 
array([[0, 1], 
     [2, 3]]) 

In [376]: n = 3 

In [377]: numpy.tile(x, n) 
Out[377]: 
array([[0, 1, 0, 1, 0, 1], 
     [2, 3, 2, 3, 2, 3]]) 

In [378]: numpy.concatenate([x for i in range(n)], axis=1) 
Out[378]: 
array([[0, 1, 0, 1, 0, 1], 
     [2, 3, 2, 3, 2, 3]])