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

蠓蟲分類演算法

發布時間: 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

熱點內容
rmijava 發布:2025-09-18 08:38:26 瀏覽:18
sql軟體和伺服器怎麼連接 發布:2025-09-18 08:27:47 瀏覽:937
手機java模擬器 發布:2025-09-18 07:13:29 瀏覽:416
linux線程的棧大小 發布:2025-09-18 07:09:42 瀏覽:633
廢舊電腦做linux伺服器 發布:2025-09-18 07:06:50 瀏覽:263
終端配置怎麼寫 發布:2025-09-18 06:44:42 瀏覽:804
ftp手機登陸 發布:2025-09-18 06:43:04 瀏覽:767
emc存儲800電話 發布:2025-09-18 06:32:49 瀏覽:964
c語言編程與設計 發布:2025-09-18 06:09:15 瀏覽:724
2016年預演算法 發布:2025-09-18 06:07:05 瀏覽:625