资源简介
MATLAB语言的随机森林算法的例程,可以用于学习随机森林算法
代码片段和文件信息
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%功能:演示随机森林算法在计算机视觉中的应用
%环境:Win7,Matlab2012b
%Modi: NUDT-VAP
%时间:2015-4-10
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
path = [‘E:\works\book\7(机器学习20讲)\Code\5、Random Forest\‘];
data1 = textread([path ‘satimage.tra‘]);
data2 = textread([path ‘satimage.txt‘]);
% path = ‘C:\Users\Administrator\Documents\MATLAB\‘;
% data = textread(path + ‘srbct.txt‘);
% In this data set each row represents a sample
% and each column represents a kind of variable(feature attribute).
% !! So we should transpose “x“ and “xts“ below.
[m1 n1] = size(data1);
[m2 n2] = size(data2);
ntest = m2; % The number of test set;
ntrain = m1; % The number of training set;
% Above lines we randomly select 2/3 data as training data
% and remaining 1/3
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2737 2015-04-25 16:06 5、Random Forest\main.m
文件 81920 2012-11-07 10:37 5、Random Forest\RF.mexw32
文件 2616 2012-11-07 10:37 5、Random Forest\runRF.m
文件 547 2015-04-11 08:43 5、Random Forest\runRF_demo.m
文件 525830 2012-11-07 10:37 5、Random Forest\satimage.tra
文件 236745 2012-11-07 10:37 5、Random Forest\satimage.txt
文件 1001856 2012-11-07 10:37 5、Random Forest\srbct.txt
文件 28024 2012-11-07 10:37 5、Random Forest\test_data.txt
文件 1188000 2012-11-07 10:36 5、Random Forest\trainData.txt
文件 56048 2012-11-07 10:37 5、Random Forest\train_data.txt
目录 0 2012-11-07 10:37 5、Random Forest\datas\satimage
目录 0 2012-11-07 10:37 5、Random Forest\datas
目录 0 2015-11-30 15:36 5、Random Forest
----------- --------- ---------- ----- ----
3124323 13
- 上一篇:tle 根据卫星的位置和速度
- 下一篇:ddd 六阶状态空间模型
相关资源
- Pattern Recognition and Machine Learning(高清
- MATLAB 编程 第二版 Stephen J. Chapman 著
- 均值滤波和FFT频谱分析Matlab代码
- 《MATLAB扩展编程》代码
- HDB3码、AMI码的MATLAB实现
- 3点GPS定位MATLAB仿真
- MATLAB数字信号处理85个实用案例精讲入
- matlab从入门到精通pdf94795
- 欧拉放大论文及matlab代码
- 跳一跳辅助_matlab版本
- 全面详解LTE MATLAB建模、仿真与实现
- MIMO-OFDM无线通信技术及MATLAB实现_孙锴
- MATLAB Programming for Engineers 4th - Chapman
- matlab 各种谱分析对比
- 分数阶chen混沌matlab程序
- 基于粒子群算法的非合作博弈的matl
- MATLAB车流仿真 包括跟驰、延误
- matlab空间桁架计算程序
- 基于MATLAB的图像特征点匹配和筛选
- DMA-TVP-FAVAR
- GPS信号的码捕获matlab代码.7z
- 一维光子晶体MATLAB仿真代码吸收率折
- newmark法源程序
- 传统关联成像、计算鬼成像matlab
- pri传统分选算法
- 摆动滚子推杆盘形凸轮设计
- 医学图像重建作业matlab源码
- Matlab实现混沌系统的控制
- 检测疲劳驾驶
- Matlab锁相环仿真-Phase Locked Loop.rar
评论
共有 条评论