Session Ready
Exercise

Output layers

Output layers are simply Dense layers! Output layers are used to reduce the dimension of the inputs to the dimension of the outputs. You'll learn more about output dimensions in chapter 4, but for now, you'll always use a single output in your neural networks, which is equivalent to Dense(1) or a dense layer with a single unit.

Instructions
100 XP
  • Import the Input and Dense functions from keras.layers.
  • Create an input layer of shape 1.
  • Again, create a dense layer with 1 unit and pass input_tensor directly to it.