C.W.K.
Stream
Lesson 06 of 07 · published

흔한 실수들

~8 min · sequential

Level 0Keras 도제
0 XP0/97 lessons0/20 achievements
0/120 XP to next level120 XP to go0% complete

Sequential 초보가 가장 자주 부딪치는 실수: (1) input_shape 빠뜨림 — 첫 fit 시점에 cryptic error. 첫 layer 에 input_shape 또는 keras.Input 으로 명시. (2) Flatten 누락 — 4D image tensor 를 Dense 에 그대로. summary 에서 shape 보면 바로 보임.

(3) label / loss mismatch — int label 에 categorical_crossentropy (one-hot 기대). sparse_categorical_crossentropy 가 맞음. (4) output 차원 / class 수 불일치 — 10-class 인데 Dense(num_classes=5). 항상 num_classes 변수 한 곳에서.

External links

Exercise

동작하는 MNIST 스크립트에 위 4 실수 하나씩 일부러 넣어. 각 케이스 에러 메시지 메모. 본인용 debug-mistakes.md 치트시트 만들어.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.