當前位置:首頁 » 操作系統 » 蠓蟲分類演算法

蠓蟲分類演算法

發布時間: 2024-01-21 06:17:13

A. matlab中有沒有感知器演算法的函數

clear all
%輸入向量,兩種蠓蟲的特徵向量
p=[1.24 1.36 1.38 1.378 1.38 1.40 1.48 1.54 1.56 1.14 1.18 1.20 1.26 1.28 ...
1.30;1.72 1.74 1.64 1.82 1.90 1.70 1.70 1.82 2.08 1.78 1.96 1.86 2.00 2.00 1.96];
%目標向量
t=[1 1 1 1 1 1 1 1 1 0 0 0 0 0 0];
%創建感知器網路
net=newp([0 2.5;0 2.5],1);
figure;
cla;
plotpv(p,t);
plotpc(net.IW{1},net.b{1});
hold on;
%訓練該感知器網路
net=init(net);
linehandle=plotpc(net.IW{1},net.b{1});
pause
[net,y,e]=adapt(net,p,t);
linehandle=plotpc(net.IW{1},net.b{1},linehandle);
%檢驗該感知器網路
p1=[1.24 1.28 1.40;1.80 1.84 2.04];
a=sim(net,p1);
figure;
plotpv(p1,a);
Thepoint=findobj(gca,'type','line');
set(Thepoint,'color','red');
hold on;
plotpv(p,t);
plotpc(net.IW{1},net.b{1});
hold off;
pause

熱點內容
編譯安裝內核時磁碟容量縮小 發布:2025-07-09 15:08:45 瀏覽:41
lol代練全是用腳本嗎 發布:2025-07-09 15:06:56 瀏覽:712
車載導航伺服器地址 發布:2025-07-09 15:01:40 瀏覽:671
金融機購貸的車款怎麼解壓 發布:2025-07-09 15:01:40 瀏覽:324
pc腳本精靈 發布:2025-07-09 14:59:53 瀏覽:9
吃東西解壓電視劇 發布:2025-07-09 14:59:03 瀏覽:53
c語言字元串轉10進制 發布:2025-07-09 14:56:51 瀏覽:236
伺服器記錄ip地址數量 發布:2025-07-09 14:56:49 瀏覽:283
c語言abc大小 發布:2025-07-09 14:51:37 瀏覽:544
python做web開發 發布:2025-07-09 14:28:48 瀏覽:374