admin管理员组文章数量:1397146
I am building my deep learning model using Sequential model, while I am executing the model.fit
my jupyter notebook dies with message The kernel appears to have died. It will restart automatically
.
model_class = tf.keras.models.Sequential()
model_class.add(tf.keras.layers.Dense(11, activation='relu'))
model_class.add(tf.keras.layers.Dense(8, activation='relu'))
model_class.add(tf.keras.layers.Dense(8, activation='softmax'))
# Compile the model
model_classpile(loss="categorical_crossentropy", metrics=["accuracy"], optimizer="sgd")
# Fit the model
model_class.fit(x=Xc_train, y=yc_train, batch_size=20, epochs=100, validation_data=(Xc_val, yc_val))
本文标签:
版权声明:本文标题:tensorflow - Jupyter | The kernel appears to have died. It will restart automatically | keras.models.Sequential - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744149764a2593007.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论