📄 demobdk.m
字号:
function DemoBDK;
%
clear
close all
% make a copy of the parameter file
disp('copying demo-parameters for the Wine data set to SetParamsModel.m');
!copy SPMBDK.m SetParamsModel.m
% build a BDK model on basis of a Wine class data set
%
Ninit=1; % just one random initialisation of the network weights
% note that the predifined division in training and test
% set is used.
PercTrain=0; % here ignored, because training and test set are already defined
[PerfTrain,PerfTest,BDK,MLKP] = MakeModel(Ninit,PercTrain);
disp(' ')
disp('!!! hit a key to continue !!!')
pause
%
% PerfTrain contains the percentage correct (for classification) or the total
% RMSEP value for the training set
%
% PerfTest contains the percentage correct (for classification) or the total
% RMSEP value for the test set
%
% BestBDK is a Matlab struct containing all the essentials for the model
%
% MLKP contains the complete parameter block for the BDK model
%
%
% start a quick analysis of the content of BDK
AnalyseBDK(BDK,MLKP);
%
% figure(1) displays the weights of the input map
%
% figure(2) shows in colour the class membership (embedded in the output map)
%
% figure(3) depicts a correlation image between input and output map
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -