다트 던진 사람 학습시키기
이제 모델과 데이터셋이 모두 준비됐어요. 학습을 시작해 볼까요?
방금 변환한 coordinates 특성과 competitors 레이블은 각각 coord_train,coord_test와 competitors_train,competitors_test로 나뉘어 있어요.
model도 이미 로드되어 있어요. 필요하면 콘솔에서 학습 데이터를 시각화하거나 model.summary()를 확인해 보세요.
이제 보드만 보고 누가 어떤 다트를 던졌는지 알아맞혀 봅시다!
이 연습은 강의의 일부입니다
Keras로 시작하는 딥 러닝
연습 안내
- 학습 데이터로
model을 200epochs동안 학습시키세요. - 테스트 데이터에서
model의 정확도를 평가하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Fit your model to the training data for 200 epochs
model.____(____,____,____=____)
# Evaluate your model accuracy on the test data
accuracy = ____.____(____, ____)[1]
# Print accuracy
print('Accuracy:', accuracy)