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))

本文标签: