raise ValueError("Shapes %s and %s are incompatible" % (self, other)) ValueError: Shapes (None, 5) and (None, 1) are incompatible code example
Example: shapes (none, 1) and (none, 5) are incompatible
Change Categorical Cross Entropy to Binary Cross Entropy since your output label is binary. Also Change Softmax to Sigmoid since Sigmoid is the proper activation function for binary data