Today I am running this code,but in the plot no figures are showing except for the first row.
from sklearn.metrics import confusion_matrix
import seaborn as sns
import matplotlib.pyplot as plt
# Assuming y_test is your true labels and y_pred is your predicted labels
cm = confusion_matrix(y_test, y_pred)
plt.figure(figsize=(10,7))
sns.heatmap(cm, annot=True,fmt='.0f',cmap='YlGnBu')
plt.xlabel('Predicted')
plt.ylabel('Truth')
plt.show()
Today I am running this code,but in the plot no figures are showing except for the first row.
Here are the modules installed:
After encountering this abnormal, I turn to python 3.7 with 0.9.0 ,everything works right.