728x90
반응형
SMALL
np.set_printoptions(threshold=np.inf, linewidth=np.inf)
print 전에 선언해주면 된다. threshold는 np.inf의 개수를 넘는 원소를 가질 경우 축약형으로 출력해주는 속성이고 linewidth는 한 줄에 출력되는 원소 숫자이다.
# 28 * 28 = 784 numpy array
np.set_printoptions(threshold=784,linewidth=np.inf)
print('class_5_mnist.png')
# sys module should be imported
np.set_printoptions(threshold=sys.maxsize)
728x90
반응형
LIST
'Python Library > NumPy' 카테고리의 다른 글
[NumPy] numpy.random.choice (0) | 2022.07.30 |
---|---|
[NumPy] np.load 배열 확인 (0) | 2022.05.30 |
[NumPy] numpy 원소 재배열 (0) | 2021.12.30 |
[NumPy] numpy 원소 제거 및 추가 (0) | 2021.12.29 |
[NumPy] asarray() (0) | 2021.12.27 |