모델 학습 및 평가
이제 새 모델을 정의했으니, 정규 시즌 농구 데이터에 맞춰 학습해 보세요.
이전 연습 문제에서 학습한(정규 시즌 데이터로 학습됨) model을 사용해 토너먼트 경기 데이터(games_tourney)에서 모델을 평가하세요.
이 연습은 강의의 일부입니다
Keras로 배우는 Advanced Deep Learning
연습 안내
games_season데이터셋에 모델을 학습하세요. 입력은'team_1','team_2','home'열이고, 타깃은'score_diff'열입니다.- 에포크 1회, 검증 분할 10%, 배치 크기 2048로 학습하세요.
- 동일한 입력과 출력을 사용해
games_tourney에서 모델을 평가하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Fit the model to the games_season dataset
____([____, ____, ____],
____,
epochs=____,
verbose=____,
validation_split=____,
batch_size=____)
# Evaluate the model on the games_tourney dataset
print(____.____(____, ____, verbose=False))