I’m getting an error that I do not understand with the create model step. Here is the error message. Can you point me in the right direction?
ValueError Traceback (most recent call last)
in
5
6 # Train the model and save the training history
----> 7 history = model.fit(train_pad_trunc_seq, train_labels, epochs=20, validation_data=(val_pad_trunc_seq, val_labels))
/opt/conda/lib/python3.8/site-packages/keras/utils/traceback_utils.py in error_handler(*args, **kwargs)
65 except Exception as e: # pylint: disable=broad-except
66 filtered_tb = _process_traceback_frames(e.traceback)
—> 67 raise e.with_traceback(filtered_tb) from None
68 finally:
69 del filtered_tb
/opt/conda/lib/python3.8/site-packages/keras/engine/data_adapter.py in select_data_adapter(x, y)
986 if not adapter_cls:
987 # TODO(scottzhu): This should be a less implementation-specific error.
→ 988 raise ValueError(
989 "Failed to find data adapter that can handle "
990 “input: {}, {}”.format(
ValueError: Failed to find data adapter that can handle input: <class ‘numpy.ndarray’>, (<class ‘tuple’> containing values of types {“<class ‘int’>”})