fit()이 작동하게 만드는 설정 단계
model.fit() 호출 전에 compile() 필수. optimizer (weight 업데이트 방법), loss (최소화 대상), metric (모니터링 대상)을 묶어. training이 아예 작동하느냐를 가르는 세 선택.
빠른 실험엔 문자열 shortcut ('adam', 'sparse_categorical_crossentropy'). 하이퍼파라미터 튜닝 필요할 땐 instance 객체 — learning rate, optimizer beta, loss class weight 등.