prex3mod.m
来自「模式识别工具箱,本人毕业论文时用到的,希望对大家有用!」· M 代码 · 共 29 行
M
29 行
%PREX3MOD PRTOOLS example of classifiers and scatter plothelp prex3mod
pause(1)echo onload c:\prova.mat A C D% Generate two difficult classes % Training set c (100 objects / class) % Test set d (200 objects / class)figure(1);
scatterd(C);
figure(2);
scatterd(D);
echo off
num_hidden=input('Quanti neuroni nello strato hidden?');echo on
[w1,R] = bpxnc(C,num_hidden,2000,[],D);% Neural Net % Compute and display errors
figure(1);
hold off;
plot(R(:,1),R(:,2),'-'); drawnow;
hold on;
plot(R(:,1),R(:,3),':'); drawnow;
legend('training set','training-test set');xlabel('Epoche');ylabel('Errore');
echo off
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?