当前位置:网站首页>分类预测 | MATLAB实现CNN-GRU(卷积门控循环单元)多特征分类预测
分类预测 | MATLAB实现CNN-GRU(卷积门控循环单元)多特征分类预测
2022-08-09 10:03:00 【机器学习之心】
分类预测 | 分类预测 | MATLAB实现CNN-GRU(卷积门控循环单元)多特征分类预测
预测效果
基本介绍
本次运行测试环境MATLAB2020b
总体而言,CNN用作特征(融合)提取,然后将输出的feature映射为序列向量输入到GRU当中。
模型描述
- 卷积门阀循环神经网络处理特征抽取与分类。该模型主要由向量处理层、卷积层、GRU层和分类输出层4个部分组成。
- 卷积核数对分类准确率的影响:卷积核数在一定程度上会影响分类的精确度。卷积核数太小时,分类准确率有所欠缺;而卷积核数超过一定数目后,准确率无明显变化。
- 卷积核大小对分类准确率的影响:采用小卷积核模型的分类准确率要高于大卷积核模型的分类准确率。卷积核越大,GRU单次接受的词语个数越多,GRU单次接受的个数过多,相邻的GRU输入的相关性就会减弱,不利于序列建模。
- GRU隐层节点数对分类准确率的影响:隐层节点数的变化对分类准确率的影响不大,对二分类数据集,只需设置隐层节点数为较小的数值,就可获得较高的准确率。而对于多分类数据,隐层节点数太小时,模型表达能力不足,分类准确率较低。
程序设计
- 完整源码私信博主。
%% 训练混合网络
% rng(0);
% 训练
CNNGRUnet = trainNetwork(XrTrain,YrTrain,layers,options);
%-------------------------------------------------------------------------------------
%% CNN-GRU数据输出
%% 训练误差集评价
ACCtrain = sum(YPred_Train == YrTrain)./numel(YrTrain);
disp('CNN-GRU训练ACC');
disp(ACCtrain)
%-------------------------------------------------------------------------------------
%% 测试集误差评价
ACCtest = sum(YPred_Test == YrTest)./numel(YrTest);
disp('CNN-GRU测试ACC');
disp(ACCtest)
学习总结
结合CNN与GRU提出卷积门阀循环神经网络的本分类方法。通过引入卷积结构提取多尺度组合特征,辅助高层特征学习,从而丰富了GRU的特征输入。同时,引入Softmax分类器,使学习到的特征在类内紧凑。在后续研究中,还会继续优化和改进所提出模型的算法、结构与参数设置,以进一步提高模型分类识别能力。
参考资料
[1]
Diab D M,El Hindi K M. Using differential evolution for fine tuning naïve Bayesian classifiers and its application for text classification[J]. Applied Soft Computing, 2017, 54: 183-199. DOI:10.1016/j.asoc.2016.12.043
[2]
Zhang Wen,Tang Xijin,Yoshida T. TESC:An approach to TExt classification using semi-supervised clustering[J]. Knowledge-Based Systems, 2015, 75: 152-160. DOI:10.1016/j.knosys.2014.11.028
[3]
Vieira A S,Borrajo L,Iglesias E L. Improving the text classification using clustering and a novel HMM to reduce the dimensionality[J]. Computer Methods and Programs in Biomedicine, 2016, 136: 119-130. DOI:10.1016/j.cmpb.2016.08.018
[4]
Wang Yisen,Xia Shutao T,Wu Jia. A less-greedy two-term Tsallis entropy information metric approach for decision tree classification[J]. Knowledge-Based Systems, 2017, 120: 34-42. DOI:10.1016/j.knosys.2016.12.021
[5]
Kim Y.Convolutional neural networks for sentence classification[C]//Proceedings of the 2014 Conference on empirical Methods In Natural Language Processing.Doha:ACL,2014:1532–1543.
边栏推荐
- 【 size_t is unsigned integer (1 > 10) - > 1.
- 5.Set interface and implementation class
- Tom Morgan | Twenty-One Rules of Life
- 《刷题日记》2
- 蓄电池建模、分析与优化(Matlab代码实现)
- 4. Generics and Utilities
- EndNote User Guide
- 自定义类型:结构体,枚举,联合
- 5. Transform Streams
- 3D printed this DuPont cable management artifact, and the desktop is no longer messy
猜你喜欢
Loop nesting and basic operations on lists
EndNote User Guide
时间复杂度和空间复杂度
蓄电池建模、分析与优化(Matlab代码实现)
MySQL执行过程及执行顺序
[Machine Learning] Basics of Data Science - Basic Practice of Machine Learning (2)
Demand side power load forecasting (Matlab code implementation)
Attentional Feature Fusion
【Linux】宝塔面板设置MySQL慢查询日志,未走索引日志
[相机配置] 海康相机丢包配置环境
随机推荐
A little experience sharing about passing the CISSP exam at one time
动态内存管理
MySQ事务控制语言-TCL,进来学习!
Arrays.toString( )打印二维数组
1: bubble sort
Quick sort eight sorts (3) 】 【 (dynamic figure deduction Hoare, digging holes, front and rear pointer method)
排序1:冒泡排序
electron 应用开发优秀实践
通过程序发送 Gmail 邮件
Browser error classification
[Halcon&几何] 直线的垂线与延长线的计算
元组 字典 集合
Redis 缓存主动更新策略
快速解决MySQL插入中文数据时报错或乱码问题
4. Character stream
3D printed this DuPont cable management artifact, and the desktop is no longer messy
[贴装专题] 视觉贴装平台与贴装流程介绍
梦笔记0809
Qt 国际化翻译
图表示学习(Graph Representation Learning)笔记