강의

멘토링

커뮤니티

Inflearn Community Q&A

gr07213757's profile image
gr07213757

asked

Introduction to Machine Learning and Deep Learning Using Python

Practice - Problem Description (Building LeNet Model - Using MNIST Dataset)

LeNet-5 실습 중 loss값 nan이 나오고 있습니다.

Resolved

Written on

·

629

0

제목 없음.png강의와 동일하게 코드를 쳐서 진행한 것 같은데 loss값 자체가 nan이 나오고 accuracy는 0.1을 넘기지 못하는 중입니다. 왜 이렇게 나오는 건지 알려주실 수 있을까요?

python머신러닝딥러닝pandasnumpykerastensorflowanacondamatplotlibcnn

Answer 1

0

gr07213757님의 프로필 이미지
gr07213757
Questioner

코드를 다시 한번 들여다보다가 이유 찾았습니다 마지막 model.add부분이 softmax가 아니라 relu로 잘못 적어서 발생한 문제였습니다.

YoungJea Oh님의 프로필 이미지
YoungJea Oh
Instructor

찾으셔서 다행입니다 ^^ . 감사합니다.

gr07213757's profile image
gr07213757

asked

Ask a question