Scikit Learn Confusion Matrix - Python Guides
pythonguides.com › scikit-learn-confusion-matrixFeb 11, 2022 · Scikit learn confusion matrix is defined as a technique to calculate the performance of classification. The confusion matrix is also used to predict or summarise the result of the classification problem. Code: y_true = [2, 0, 0, 2, 0, 1] is used to get the true value. y_pred = [0, 0, 2, 0, 0, 2] is used to get the predicted value.
sklearn.metrics.plot_confusion_matrix — scikit-learn 1.0.2 ...
scikit-learn.org › stable › modulessklearn.metrics.plot_confusion_matrix(estimator, X, y_true, *, labels=None, sample_weight=None, normalize=None, display_labels=None, include_values=True, xticks_rotation='horizontal', values_format=None, cmap='viridis', ax=None, colorbar=True) [source] ¶ DEPRECATED: Function plot_confusion_matrix is deprecated in 1.0 and will be removed in 1.2.