1. PDA
Fisher_to.m为总文件。
FisherCrossVal.m为fisher训练和验证函数
设计如下:
Fisher_to.m代码:
clear
load breastcancer.mat
%n points d-dimentions [n,d] = size(feature);
[err w w0] = FisherCrossVal(feature,classlabel); % feature_sh = w' * feature'; classlabel = classlabel >0; hist(feature_sh(~classlabel),50) hold on
h = findobj(gca,'Type','patch'); set(h,'FaceColor','r','EdgeColor','w') hist(feature_sh(classlabel),50)
%no cross-validation
R_rate = 1-err/n %Dsiplay
% 5-fold-cross-validation
c = cvpartition(n,'Kfold',5); %divide n points to 5 parts ramdom Error_Cross = zeros(1,5); for j = 1 : 5
tr = c.training(j); te = c.test(j);
train_data = feature(tr,:); %training-data train_class = classlabel(tr);
test_data = feature(te,:); %tesing-data test_class = classlabel(te);
Error_Cross(j) = FisherCrossVal(train_data,train_class,... test_data,test_class); end
R_Cross_rate =ones(1,5) - Error_Cross ./c.TestSize;
c %info of test-data and training-data Error_Cross %vector ----number of faluts WrongsOfCrossVal = sum(Error_Cross) %total faults RateOfCrossValue = 1- WrongsOfCrossVal/n % rate
fisher判别分析_教育学/心理学_人文社科_专业资料 暂无评价
判别分析— Fisher判别景元萍 数理部 一.判别问题 二.两组判别分析基本思想 三.Fisher判别准则和判别函数 四.计算步骤 五.判别函数的检验 六.应用举例 一.判别...
Fisher判别_数学_自然科学_专业资料。Fisher判别法 Fisher判别法(先进行投影) ? 所谓Fisher判别法,就是一种先投影的方法。 ? 考虑只有两个(预测)变量的判别分析...
第四节 费歇(Fisher)判别法 一 Fisher判别的基本思想 二 Fisher判别函数的构造 三 线性判别函数的求法 ? Fisher判别法是1936年提出来的,该方法的主要思想是通过...
Fisher判别_数学_自然科学_专业资料。Fisher 判别理论,编程步骤和优缺点 1.理论 判别分析是用于判别个体所属群体的一种统计方法,判别分析的特点是根据已掌握的、...
多元统计分析课程设计 多元统计分析课程设计题 学班目: 院: 级: Fisher 判别法在城镇居民家庭可 支配分析中的应用 理学院 09-2 李微 14 周永芳 学生姓名: ...
改进的Fisher判别法_计算机软件及应用_IT/计算机_专业资料。简要介绍资料的主要内容,以获得更多的关注文章编号:10-2320)407-5 0024(060-430 改进的F se 判别...
fisher判别_互联网_IT/计算机_专业资料。模式识别线性分类器 上海大学计算机工程与科学学院 信息处理与多媒体研究所 Ronald Aylmer Fisher (1890~1962) ? 英国...
判别分析有距离判别分析法、Fisher 判别分析法、bey=判别分析法等,其中最基本的是Fisher 判别分析法,也称为线性判别分析法。 Fisher判别法是1936年提出来的,该方法...
热门文档