I'm using neural network machine learning and would like to see the result of my confusion matrix for my model. However, there is an error that I've got and don't know how to solve it.
from sklearn.metrics import confusion_matrix cm=confusion_matrix(testY, testPredict) print(cm)
then it give an error stated: Found input variables with inconsistent numbers of samples: [30, 24]
actually I've check the shape of the test and the prediction value and it shows the different shape. How can I make the shape of the test and prediction become same ?