My model would not train, because of the loss function
————————————————————————— ValueError Traceback (most recent call last) <ipython-input-37-9a9cd8046c6f> in <cell line: 18>() 16 loss=tf.keras.losses.CategoricalCrossentropy(), 17 metrics=[‘accuracy’]) —> 18 history1=model1.fit(train_data,epochs=5,validation_data=valid_data) 1 frames /usr/local/lib/python3.10/dist-packages/keras/src/backend/tensorflow/nn.py in categorical_crossentropy(target, output, from_logits, axis) 552 ) 553 if len(target.shape) != len(output.shape): –> 554 raise ValueError( 555 “Arguments `target` and `output` must have the same rank ” 556 “(ndim). Received: ” ValueError: Arguments […]