'ValueError: Shapes (None, 4) and (None, 11) are incompatible
I am training a CoVID Xrays Dataset. While training the model getting error as
ValueError: Shapes (None, 4) and (None, 11) are incompatible
opt = Adam(lr=0.00001)
model_transfer_full.compile(loss='categorical_crossentropy', optimizer=opt,metrics=['accuracy'])
history = model_transfer_full.fit(train_x, y_train, batch_size=32, epochs=10, validation_data=(validate_x, y_val),
callbacks=[checkpointer],verbose=1, shuffle=True)
Getting error on callbacks.
Can someone tell where it is wrong?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|