Fit a model with two outputs
Now that you've defined your 2-output model, fit it to the tournament data. I've split the data into games_tourney_train
and games_tourney_test
, so use the training set to fit for now.
This model will use the pre-tournament seeds, as well as your pre-tournament predictions from the regular season model you built previously in this course.
As a reminder, this model will predict the scores of both teams.
This exercise is part of the course
Advanced Deep Learning with Keras
Exercise instructions
- Fit the model to the
games_tourney_train
dataset using 100 epochs and a batch size of 16384. - The input columns are
'seed_diff'
, and'pred'
. - The target columns are
'score_1'
and'score_2'
.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Fit the model
____(games_tourney_train[['____', '____']],
games_tourney_train[['____', '____']],
verbose=True,
____,
____)