パラメータを数える
先ほどニューラルネットワークを作成しました。ここでは各層の重みについて考えながら、新しいネットワークを作成していきます。Keras の Dense レイヤーと Sequential モデルはすでに読み込まれており、そのまま使用できます。
これから作成するネットワークは次のとおりです:
この演習はコースの一部です
Kerasで学ぶIntroduction to Deep Learning
実践的なインタラクティブ演習
このサンプルコードを完成させて、この演習に挑戦してみましょう。
# 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()