File Input and Output with Arrays
Numpy array가 매우 클 경우에는 저장하고 다시 불러올 수 있다.
np.save는 저장
np.load는 저정한 array 불러오기
np.save('some_array', arr)
np.load('some_array.npy')
텍스트를 불러들이는 것
np.loadtxt
np.savetxt
Random Number Generation
np.random.normal
np.random.binormal
np.random.randint(0,10,100) : 0에서 10 사이의 100개
np.random.seed로 seed를 설정할 수 있다.
np.random에 속해있는 함수들
'프로그래밍 Programming > 파이썬 Python' 카테고리의 다른 글
파이썬에 대한 몇 가지 설명 (0) | 2021.05.25 |
---|---|
[Python] 내가 헷갈려서 기록하는 matplotlib의 subplot 그리기 (0) | 2021.04.22 |
[Python] Numpy 라이브러리 (1) (0) | 2021.03.26 |
[Python] 파이썬 Functions 만들기 (0) | 2021.03.26 |
[Python] 파이썬 control flow (0) | 2021.03.26 |