You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.
weighted_history=weighted_model.fit(
train_features,
train_labels,
batch_size=BATCH_SIZE,
epochs=EPOCHS,
callbacks=[early_stopping],
validation_data=(val_features, val_labels),
# The class weights go hereclass_weight=class_weight)
If I comment out class_weight=class_weight, the training runs fine. If I leave it in, it crashes with the following training log:
When running
model.fit
with aclass_weight
, the kernel crashes before it completes the first epoch.Steps to reproduce:
Run the tutorial at https://www.tensorflow.org/tutorials/structured_data/imbalanced_data from the beginning of the notebook to cell 35:
If I comment out
class_weight=class_weight
, the training runs fine. If I leave it in, it crashes with the following training log:It crashes only on my M1 Mac Mini. If I run the notebook in Colab, it runs fine.
The text was updated successfully, but these errors were encountered: