I am trying to plot a confusion matrix for my topic classification. However, when I plot it, I can't see anything clearly. I get scribbled X and Y axis without anything properly plotted. How can I plot it in a better way to see how my documents are being classified? I have 22465 documents and 88 topics.
Here is my code:
from pandas_confusion import ConfusionMatrix
import matplotlib.pyplot as plt
model = LogisticRegression()
model = model.fit(matrix_tmp, label_tmp)
pred = model.predict(matrix_tmp_test)
print(metrics.accuracy_score(label_tmp_test,pred))
print(metrics.classification_report(label_tmp_test,pred))
cm=ConfusionMatrix(label_tmp_test,pred)
print(cm)
cm.plot()
plt.show()