By default, the output layer has num_classes nodes and softmax activation is being used on the final layer for CNN models in convolutional(). If num_classes is 2, sigmoid activation should be used and the number of nodes in the final layer should be 1, not 2.
By default, the output layer has num_classes nodes and softmax activation is being used on the final layer for CNN models in convolutional(). If num_classes is 2, sigmoid activation should be used and the number of nodes in the final layer should be 1, not 2.