model = tf.keras.Sequential()model.add(Bidirectional(LSTM(32)))
model.add(Dense(`categorical_crossentropy` expects targets to be binary matrices (1s and 0</e
但是当我运行代码时,弹出了这个错误:我曾尝试更改lstm层中的input_shape=(10000,1),但随后出现此错误:
ValueError: Errorwhen checking target: expected dense_39 to have shape (1,) but got array with