资源简介
Matlab代码写的Breiman's randomForest

代码片段和文件信息
function printRF(out)
%!
%! Description:
%!
%! Print summary for output object returned from RFReg and RFClass.
%!
%! Usage:
%!
%! out = RFReg(param x y);
%! PrintRF(out);
%!
%! Arguments:
%!
%! out An output object returned from RFReg or RFClass.
%!
%
% Last update on Jun. 27 2003
% By Ting Wang Merck & Co.
%
nm = fieldnames(out);
for i=1:length(nm) % Print parameter settings
if strcmp(nm(i)‘param‘)
disp(‘ ‘);
disp([‘ Number of Trees: ‘num2str(out.param(1))]);
disp([‘ No. of Variables tried at each split: ‘ ...
num2str(out.param(2))]);
end;
end;
for i=1:length(nm) % Print error rate for training/test set
if strcmp(nm(i)‘errtr‘)
disp([‘ OOB estimate error rate for training data: ‘ ...
sprintf(‘%6.4f‘out.errtr(end))‘%‘]);
end;
if strcmp(nm(i)‘errts‘)
disp([‘ OOB estimate error rate for test data: ‘ ...
sprintf(‘%6.4f‘out.errts(end))‘%‘]);
end;
end;
for i=1:length(nm) % Print confusion matrix for training/test set
if strcmp(nm(i)‘mtab‘)
disp(‘ ‘);
disp([‘ Confusion Matrix For Training Set‘]);
k=size(out.mtab1);
disp([‘ |‘sprintf(‘%6.0f‘(1:k))‘ | err %‘]);
disp([‘ -----|‘repmat([‘-‘]16*k) ‘-|---------‘]);
for i=1:k
s=sum(out.mtab(i:));
if s>0 err=100*(1-out.mtab(ii)/s);
else err=NaN; end;
disp([sprintf(‘%6.0f‘i)‘ |‘ ...
sprintf(‘%6.0f‘out.mtab(i:)) ‘ |‘ ...
sprintf(‘%9.4f‘err)]);
end;
end;
if strcmp(nm(i)‘mtabts‘)
disp(‘ ‘);
disp([‘ Confusion Matrix For Test Set‘]);
k=size(out.mtabts1);
disp([‘ |‘sprintf(‘%6.0f‘(1:k))‘ | err %‘]);
disp([‘ -----|‘repmat([‘-‘]16*k) ‘-|---------‘]);
for i=1:k
s=sum(out.mtabts(i:));
if s>0 err=100*(1-out.mtabts(ii)/s);
else err=NaN; end;
disp([sprintf(‘%6.0f‘i)‘ |‘ ...
sprintf(‘%6.0f‘out.mtabts(i:)) ‘ |‘ ...
sprintf(‘%9.4f‘err)]);
end;
end;
end;
disp(‘ ‘);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-07-07 16:07 Random Forest Matlab Version\
目录 0 2016-07-07 16:07 Random Forest Matlab Version\Examples\
文件 1194 2003-06-25 09:22 Random Forest Matlab Version\Examples\Example_Classification.m
文件 1145 2003-03-03 11:51 Random Forest Matlab Version\Examples\Example_Regression.m
文件 2276 2004-12-14 15:08 Random Forest Matlab Version\Examples\PrintRF.m
文件 12564 2004-12-14 15:08 Random Forest Matlab Version\Examples\RFClass.m
文件 57344 2004-12-14 15:08 Random Forest Matlab Version\Examples\RFClassification.dll
文件 32726 2002-08-21 16:07 Random Forest Matlab Version\Examples\boshouse.txt
文件 236745 2002-08-21 16:06 Random Forest Matlab Version\Examples\satimage_tes.txt
文件 525830 2002-08-21 16:06 Random Forest Matlab Version\Examples\satimage_tra.txt
目录 0 2016-07-07 16:07 Random Forest Matlab Version\Fortran\
文件 60909 2003-06-27 13:11 Random Forest Matlab Version\Fortran\RFClassification.f
文件 24632 2003-06-30 12:08 Random Forest Matlab Version\Fortran\RFRegression.f
文件 97280 2003-09-15 10:55 Random Forest Matlab Version\Installation.doc
文件 2276 2003-06-27 16:02 Random Forest Matlab Version\PrintRF.m
文件 12564 2003-06-25 10:16 Random Forest Matlab Version\RFClass.m
文件 57344 2003-08-21 12:42 Random Forest Matlab Version\RFClassification.dll
文件 7959 2003-06-30 11:47 Random Forest Matlab Version\RFReg.m
文件 36864 2003-08-21 12:42 Random Forest Matlab Version\RFRegression.dll
文件 847 2003-09-15 11:11 Random Forest Matlab Version\ReadMe
文件 361769 1998-07-21 04:07 Random Forest Matlab Version\bootman.ps
- 上一篇:蚁群算法采用matlab开发的仿真平台
- 下一篇:arrow3.m--Matlab
相关资源
- 多个随机森林的matlab代码 含有
- Random Walks 标准程序,MATLAB程序,调试
- Random Walk Model Matlab源代码
- 随机森林用于分类matlab代码
- Rotation Forest 代码
- 随机森林MATLAB
- 随机森林matlab工具箱及其它实现方法
- 随机森林工具箱
- house_dataset.csv.zip
- kkphoon.Simulation of second-order processes u
- 随机森林的MATLAB实现
- matlab实现的随机森林算法
- 随机波束成型rbfmatlab代码
- 基于MATLAB的对图像特征的分类随机森
- 随机森林程序
- GoDec:Randomized Low-rank & Sparse Matrix Deco
- matlab版随机森林工具箱-用于分类和回
- 随机森林回归matlab代码
- 随机森林的程序
- 随机森林matlab代码
- 用随机森林的方法对IRIS进行训练和分
- 随机森林工具包
- 可直接运行的随机森林的matlab代码
- 随机森林工具包RF_MexStandalone-v0.02-pr
- 随机森林分类matlab代码
- 随机森林的matlab的预测Iris
- Random Walk (随机游走) matlab
- 随机森林matlab代码分类RF/回归RF
- 随机路径生成函数matlab
- matlab程序下的决策树与随机森林分类
评论
共有 条评论