Evaluate the model on the tournament test data
The model you fit to the regular season data (model
) in the previous exercise and the tournament dataset (games_tourney
) are available in your workspace.
In this exercise, you will evaluate the model on this new dataset. This evaluation will tell you how well you can predict the tournament games, based on a model trained with the regular season data. This is interesting because many teams play each other in the tournament that did not play in the regular season, so this is a very good check that your model is not overfitting.
This exercise is part of the course
Advanced Deep Learning with Keras
Exercise instructions
- Assign the
'team_1'
and'team_2'
columns fromgames_tourney
toinput_1
andinput_2
, respectively. - Evaluate the model.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Get team_1 from the tournament data
input_1 = games_tourney[____]
# Get team_2 from the tournament data
input_2 = games_tourney[____]
# Evaluate the model using these inputs
print(____([____, ____], games_tourney[____], verbose=False))