Plotting TP/FN Bar Chart from Confusion Matrix

버전 1.0.4 (3.21 KB) 작성자: David Heise
This code provides an alternative view of confusion matrix data by plotting as a bar chart.
다운로드 수: 16
업데이트 날짜: 2023/8/20

라이선스 보기

This function will produce a bar plot to show the true positives (TP) versus the false negative (FN) for each target class. Both correct and incorrect classifications are color-coded to show the predicted class.
Inputs:
C - an integer matrix of the confusion data to plot, with ground truth labels in rows and predicted labels in columns
c_labels - a cell array of class labels, given in the same order as in C
cmap - [optional] a colormap matrix specifying colors to use in displaying each class from c_labels
max_y - [optional] integer maximum value for y axis in the produced plot
Outputs:
b_fig - a handle to the figure produced

인용 양식

D. Heise and H. Bear, "Evaluating the Potential and Realized Impact of Data Augmentations", submitted to 2023 IEEE Symposium Series on Computational Intelligence, in review.

MATLAB 릴리스 호환 정보
개발 환경: R2023a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
태그 태그 추가
도움

도움 받은 파일: Plot Groups of Stacked Bars

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.4

updated citation

1.0.3

removed extraneous '\n' from error messages

1.0.2

corrected additional errors

1.0.1

correcting small (but fatal) errors

1.0.0