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

Input layers

The first step in creating a neural network model is to define the Input layer. This layer takes in raw data, usually in the form of numpy arrays. The shape of the Input layer defines how many variables your neural network will use. For example, if the input data has 10 columns, you define an Input layer with a shape of (10,).

In this case, you are only using one input in your network.

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

Advanced Deep Learning with Keras

Kursa Göz Atın

Egzersiz talimatları

  • Import the Input layer function from keras.layers.
  • Create an input layer of shape 1.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Import Input from tensorflow.keras.layers
____

# Create an input layer of shape 1
input_tensor = ____(shape=(____,))
Kodu Düzenle ve Çalıştır