MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   感知器的误差问题 (https://www.labfans.com/bbs/showthread.php?t=2332)

wangbaozhi562 2008-04-17 10:26

感知器的误差问题
 
P2 = [0 0 1 1; 0 1 0 1];
T2 = [0 1 1 1];
net = newp([0 1; -2 2],1);
net.trainParam.epochs = 20;
net = train(net,P2,T2);
[y,pf,af,e,perf]=sim(net,P2)

返回结果:
y =

0 1 1 1


pf=

[]


af =

[]


e =

0 -1 -1 -1


perf =

0.7500

这段代码中仿真的结果明明是全部正确的,可为什么perf=0.75,也就是系统的给出的性能不是百分之百呢?


所有时间均为北京时间。现在的时间是 12:22

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.