BaşlayınÜcretsiz başlayın

Simple two-output model

In this exercise, you will use the tournament data to build one model that makes two predictions: the scores of both teams in a given game. Your inputs will be the seed difference of the two teams, as well as the predicted score difference from the model you built in chapter 3.

The output from your model will be the predicted score for team 1 as well as team 2. This is called "multiple target regression": one model making more than one prediction.

Bu egzersiz, kursun bir parçasıdır

Advanced Deep Learning with Keras

Kursa Göz Atın

Egzersiz talimatları

  • Create a single input layer with 2 columns.
  • Connect this input to a Dense layer with 2 units.
  • Create a model with input_tensor as the input and output_tensor as the output.
  • Compile the model with 'adam' as the optimizer and 'mean_absolute_error' as the loss function.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Define the input
input_tensor = ____

# Define the output
output_tensor = ____

# Create a model
model = ____

# Compile the model
____
Kodu Düzenle ve Çalıştır