본문 바로가기
TensorFlow(AI)/Python&Django

Convert a 1D array to a 2D array in numpy

by swconsulting swconsulting 2018. 12. 24.

values = np.reshape(values, (-1, len(dataset[1:])))


B = np.reshape(A, (-1, 2))
source
https://stackoverflow.com/questions/12575421/convert-a-1d-array-to-a-2d-array-in-numpy


댓글0