1. Learn
  2. /
  3. Courses
  4. /
  5. Advanced Deep Learning with Keras

Connected

Exercise

Model using two inputs and one output

Now that you have your two inputs (team id 1 and team id 2) and output (score difference), you can wrap them up in a model so you can use it later for fitting to data and evaluating on new data.

Your model will look like the following diagram:

Instructions

100 XP
  • Define a model with the two teams as inputs and use the score difference as the output.
  • Compile the model with the 'adam' optimizer and 'mean_absolute_error' loss.