?? 3-1.m
字號:
P=[-0.5 -0.6 0.7; 0.8 0 0.1];
T=[1 1 0];
net=newp([-1 1;-1 1],1);
%返回畫線的句柄,下一次繪制分類線時將舊的刪除
handle=plotpc(net.iw{1},net.b{1});
%設置訓練次數最大為10次
net.trainParam.epochs = 10;
net=train(net,P,T);
%給定的輸入向量
Q=[0.6 0.9 -0.1; -0.1 -0.5 0.5];
Y=sim(net,Q);
figure;
%繪制分類線
plotpv(Q,Y);
handle=plotpc(net.iw{1},net.b{1},handle)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -