정규 시즌 학습 데이터에 모델 맞추기
이제 팀 전력 모델을 완성했으니, 농구 데이터에 맞춰 볼까요? 모델에 입력이 두 개이므로 입력 데이터를 리스트로 전달해야 합니다.
이 연습은 강의의 일부입니다
Keras로 배우는 Advanced Deep Learning
연습 안내
games_season에서'team_1'과'team_2'열을 각각input_1과input_2에 할당하세요.games_season의'score_diff'열을 타깃으로 사용하세요.- 에포크 1, 배치 크기 2048, 검증 분할 10%로 모델을 학습하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Get the team_1 column from the regular season data
input_1 = games_season[___]
# Get the team_2 column from the regular season data
input_2 = games_season[___]
# Fit the model to input 1 and 2, using score diff as a target
____(____,
____,
epochs=____,
batch_size=____,
validation_split=____,
verbose=True)