⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 som_settings.m

📁 Kohonen and CPANN toolbox是开发的一个MATLAB工具箱
💻 M
字号:
function settings = som_settings(type)

% default setting structure for Kohonen maps and counterpropagation artificial neural networks (CPANNs)
% som_settings build a default structure with all the parameter needed to
% perform Kohonen maps and CPANNs
% 
% settings = som_settings(type);
%
% input:
%   type        type of settings ('kohonen' or 'cpann')
% 
% output:
%   settings is a structure, with the following fields
%       settings.nsize          net size (default = NaN)
%       settings.epochs         number of total epochs (default = NaN)
%       settings.bound          boundary condition ('toroidal' or 'normal', defualt = 'toroidal')
%       settings.enter          entering mode of samples ('random' or 'sequential', defualt = 'random')
%       settings.a_max          initial learning rate, defualt = 0.5
%       settings.a_min          final learning rate, defualt = 0.01
%       settings.a_chg          learning rate proportional to epochs ('to_epo') or epochs*samples ('to_epoobj'), defualt = 'to_epo'
%       settings.ass_meth       assignation method for cpann, defualt = 1
%                               if ass_meth = 1 -> maximum weigth
%                               if ass_meth = 2 -> maximum difference over threshold
%                               if ass_meth = 3 -> maximum weigth over threshold
% 
% see the HTML HELP files (help.htm) for details and examples
%
% version 1.0 - may 2007
% Davide Ballabio
% Milano Chemometrics and QSAR Research Group
% www.disat.unimib.it/chm


settings         = [];
settings.name    = ['som_settings_' type];
settings.nsize   = NaN;          % net size
settings.epochs  = NaN;          % number of total epochs
settings.bound   = 'toroidal';   % boundary condition ('toroidal' or 'normal')
settings.enter   = 'random';     % entering mode of samples ('random' or 'sequential')
settings.a_max   = 0.5;          % initial learning rate
settings.a_min   = 0.01;         % final learning rate
settings.a_chg   = 'to_epo';     % learning rate linear decreasing proportional to epochs ('to_epo') or epochs*samples ('to_epoobj')

if strcmp(type,'cpann')
    settings.ass_meth = 1;  % assignation method for cpann, see model_cpann file
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -