IT 프로그래밍/빅데이터
[머신러닝] mnist "초간단!" 데이터셋 만들기 (숫자 그리기 예제)
잉휴
2021. 3. 16. 14:59
1. 그림판 세팅
2. 숫자 쓰기
3. jupyter notebook에 코딩
4. 결과 확인
prediction=loaded.predict(img)
print(prediction)
print(np.argmax(prediction)) #예측된 정보값=3
plt.show()
[[0. 0. 0. 1. 0. 0. 0. 0. 0. 0.]]
3
(참고)