资源简介
分类结果画混淆矩阵 采用matlab实现。

代码片段和文件信息
% Matlab package for statistics and visualization of classification results and many other problems.
%
% Author: Page( 丕子)
% Blog: www.shamoxia.com;
% QQ:379115886;
% Email: peegeelee@gmail.com
% Date: Dec. 2010
%% initialization
clc;
clear;
load num_in_class; % instance number of each class
load actual_label; % actual label of each instance
load predict_label; % predicted label of your experiments
load decision_values; % deccision values of each instance in your classification experiments(e.g. dec_values of Libsvm)
load name_class; % name of each class
%% compute and visualize the confusion matrix
addpath ConfusionMatrices; % package for computing confusion matrix
[confusion_matrix]=compute_confusion_matrix(predict_labelnum_in_classname_class);
%% compute and visualize the precision/recall curve and ROC
addpath PrecisionRecall;
label_or_decision=‘decision‘; % use label(‘label‘) as decision or decision_values(‘decision‘) as decision decision will be better.
PRC_or_ROC=0; % 0 for PRC 1 for ROC 2 for both;
compute_precision_recall(predict_labeldecision_valuesactual_labelnum_in_classlabel_or_decisionPRC_or_ROC);
%% compute accuracy and F-measure etc.
addpath AccuracyF;
classes = [1:max(max(actual_label)max(predict_label))];
fprintf(‘Begin computing confusaccuracynumcorrectprecisionrecallF...\n‘);
[confusaccuracynumcorrectprecisionrecallFPatNMAPNDCGatN]=compute_accuracy_F(actual_labelpredict_labelclasses)
fprintf(‘Finish.\n‘);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2011-01-12 15:17 PG_Curve\
目录 0 2011-01-12 15:17 PG_Curve\AccuracyF\
文件 210 2011-01-12 15:17 PG_Curve\actual_label.mat
目录 0 2011-01-12 15:17 PG_Curve\ConfusionMatrices\
文件 37372 2011-01-12 15:17 PG_Curve\decision_values.mat
文件 1591 2011-01-12 15:17 PG_Curve\main.m
文件 224 2011-01-12 15:17 PG_Curve\name_class.mat
文件 188 2011-01-12 15:17 PG_Curve\num_in_class.mat
目录 0 2011-01-12 15:17 PG_Curve\PrecisionRecall\
文件 437 2011-01-12 15:17 PG_Curve\predict_label.mat
文件 1338 2011-01-12 15:17 PG_Curve\ReadMe.txt
文件 1984 2011-01-12 15:17 PG_Curve\AccuracyF\compute_accuracy_F.m
文件 739 2011-01-12 15:17 PG_Curve\ConfusionMatrices\compute_confusion_matrix.m
文件 985 2011-01-12 15:17 PG_Curve\ConfusionMatrices\draw_cm.m
文件 14297 2011-01-12 15:17 PG_Curve\ConfusionMatrices\rotateXLabels.m
文件 1061 2011-01-12 15:17 PG_Curve\PrecisionRecall\compute_precision_recall.m
文件 3084 2011-01-12 15:17 PG_Curve\PrecisionRecall\draw_prc.m
文件 2654 2011-01-12 15:17 PG_Curve\PrecisionRecall\prc_stats.m
文件 2775 2011-01-12 15:17 PG_Curve\PrecisionRecall\prc_stats_binormal.m
文件 2179 2011-01-12 15:17 PG_Curve\PrecisionRecall\prc_stats_empirical.m
- 上一篇:并网逆变器仿真
- 下一篇:matlab学习教程全集
相关资源
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
- k近邻算法matlab实现
- matlab识别系统
- 神经网络分类matlab程序
评论
共有 条评论