I am running a Keras model on the Breast Cancer dataset. I got around 96% accuracy with it, but the confusion matrix is completely off. Here are the graphs: And here is my confusion matrix: The matrix is saying that I have no true negatives and they’re actually false negatives, when I believe that it’s the reverse. Another thing that
Tag: confusion-matrix
How to make a Confusion Matrix with Keras?
I have trained my model (multiclass classification) of CNN using keras and now I want to evaluate the model on my test set of images. Is there a way to create confusion matrix? Answer Thanks for answers. I did like this:
How to Calculate Confusion Matrix on test Data?
I want to plot a confusion matrix on the validation data. Specifically, I want to calculate a confusion matrix of the model output on the validation data. I tried everything online, but couldn’t figure it out. here is my model: Answer Here is a dummy example. DataSet Model Confusion Matrix Your interest is mostly here. Visualization Let’s visualize. Update Based
Confusion Matrix in transfer learning with keras
I was going to draw confusion matrix in my model and I used Transfer learning concept based on Deep Learning model. Confusion Matrix’s code Now below the shape of test_labels and Predictions are given, The above code is perfectly working but I saw error in below. So please concern below code, and here is the error, Note: This is value
confusion matrix error “Classification metrics can’t handle a mix of multilabel-indicator and multiclass targets”
I am getting a error when I try to use confusion matrix. I am doing my first deep learning project. I am new to it. I am using the mnist dataset provided by keras. I have trained and tested my model successfully. However, when I try to use the scikit learn confusion matrix I get the error stated above. I