Same error messages while running code from Deep Learning with Python, listing 6.23. Dies in both Jupyter Lab and command line python at the model.fit() line.
M1 iMac, 16 GB, tensorflow-macos 2.7, metal plugin, Python 3.9.5.
model = Sequential()
model.add(Embedding(max_features, 32))
model.add(SimpleRNN(32))
model.add(Dense(1, activation='sigmoid'))
model.compile(optimizer='rmsprop', loss='binary_crossentropy', metrics=['acc'])
history = model.fit(input_train, y_train,
epochs=10,
batch_size=128,
validation_split=0.2)
Topic:
Machine Learning & AI
SubTopic:
General
Tags: