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

📄 prex_som.m

📁 这个为模式识别工具箱
💻 M
字号:
%PREX_SOM   PRTools example on training SelfOrganizing Maps%% Show the training and plotting of 1- or 1-D Self-Organizing Maps.%help prex_somecho on								% Set size of the SOM	k = [5 1];								% Set the number of iterations   nrruns = [20 40 40];								% Set desired learning rates	eta = [0.5 0.1 0.1];	                     % Set the neighborhood widths   h = [0.6 0.2 0.01];								% Generate one banana class:	A = gendatb([100,100]);	A = seldat(A,1);								% Train a 1D SOM:   W = som(A,k);								% Show the results in a scatter plot	figure(1); clf;   scatterd(A); hold on;	plotsom(W);	title('One-dimensional SOM');									% Train a 2D SOM:	k = [5 5];   W = som(A,k);								% Show the results in a scatter plot	figure(2); clf;   scatterd(A); hold on;	plotsom(W);	title('Two-dimensional SOM');	echo off

⌨️ 快捷键说明

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