numpy random 행렬 생성과 모양 변경
numpy.random.random() : 0, 1 사이의 난수 생성 reshape 를 통한 원하는 크기의 행렬로의 변환 import numpy as np a = np.random.random(16) a >>> array([0.78823164, 0.40877064, 0.49785185, 0.64090304, 0.88461623, 0.09129619, 0.92878012, 0.4382319 , 0.23451835, 0.69952829, 0.63247304, 0.10117528, 0.50383388, 0.6621172 , 0.10909765, 0.32711538]) a.shape >>> (16,) a = np.random.random(16).reshape(4,4) a >>> array([[0.40145682..