Artificial Intelligence, Machine Learning, Data Science, Bioinformatics, Genomics.
confusion_matrix(y_test, y_pred) conf_matrix = confusion_matrix(y_test, y_pred) ax = sns.heatmap(conf_matrix, annot=True, fmt=”d”, linewidths=1) plt.title(‘Confusion matrix’, y=1.1) plt.ylabel(‘True label’) plt.xlabel(‘Predicted label’) And we calculate the metrics seen before: from sklearn import