Aan de slagGa gratis aan de slag

Counting parameters

You've just created a neural network. But you're going to create a new one now, taking some time to think about the weights of each layer. The Keras Dense layer and the Sequential model are already loaded for you to use.

This is the network you will be creating:

Deze oefening maakt deel uit van de cursus

Introduction to Deep Learning with Keras

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Instantiate a new Sequential model
model = ____

# Add a Dense layer with five neurons and three inputs
model.add(____(____, input_shape=____, activation="relu"))

# Add a final Dense layer with one neuron and no activation
model.____

# Summarize your model
model.summary()
Code bewerken en uitvoeren