資源簡介
MATLAB的CNN算法的例程,可以學(xué)習(xí)CNN算法
代碼片段和文件信息
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%功能:演示CNN學(xué)習(xí)算法在計(jì)算機(jī)視覺中的應(yīng)用
%基于CNN網(wǎng)絡(luò)實(shí)現(xiàn)分類;
%環(huán)境:Win7,Matlab2012b
%Modi:?NUDT-VAP
%時(shí)間:2014-10-10
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%?load?training?data
clear;
data?=?load(‘../data/mnist.mat‘);
train_x?=?double(reshape(data.train_x‘282860000))/255;
test_x?=?double(reshape(data.test_x‘282810000))/255;
train_y?=?double(data.train_y‘);
test_y?=?double(data.test_y‘);
clear(‘data‘);
%%?CNN?setup:?set?a?5c-2s-10c-2s?CNN
cnn.layers?=?{
????struct(‘type‘?‘i‘)?%input?layer
????struct(‘type‘?‘c‘?‘outputmaps‘?5?‘kernelsize‘?5)?%convolution?layer
????struct(‘type‘?‘s‘?‘scale‘?2)?%sub?sampling?layer
????struct(‘type‘?‘c‘?‘outputmaps‘?10?‘kernelsize‘?5)?%convolution?layer
????struct(‘type‘?‘s‘?‘scale‘?2)?%
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????1324??2015-04-15?08:57??16、CNN學(xué)習(xí)\CNNLearning.m
?????文件???????1768??2014-11-03?10:48??16、CNN學(xué)習(xí)\cnnsetup.m
?????文件???????1854??2014-11-03?11:28??16、CNN學(xué)習(xí)\cnntest.m
?????文件???????5751??2014-11-03?11:27??16、CNN學(xué)習(xí)\cnntrain.m
?????目錄??????????0??2015-11-30?15:36??16、CNN學(xué)習(xí)
-----------?---------??----------?-----??----
????????????????10697????????????????????5
評(píng)論
共有 條評(píng)論