【SVM分類】基于自適應(yīng)蟻獅算法優(yōu)化SVM分類器實現(xiàn)胃腸道病變附matlab代碼
1 簡介






2 部分代碼
function RWs=RWalks(dim,max_iter,lb,ub,antlion,current_iter)
I=1;
rt=current_iter/max_iter;
if current_iter>max_iter*0.20
? ?I=1+1*rt;
end
if current_iter>max_iter*0.50
? ?I=1+5*rt;
end
if current_iter>max_iter*0.75
? ?I=1+10*rt;
end
if current_iter>max_iter*0.90
? ?I=1+20*rt;
end
lb=lb'/I;
ub=ub'/I;
if rand<0.5
? ?lb=lb+antlion;
else
? ?lb=-lb+antlion;
end
if rand>=0.5
? ?ub=ub+antlion;
else
? ?ub=-ub+antlion;
end
RWs=zeros(max_iter+1,dim);
for i=1:dim
? ?X = [0 cumsum(2*(rand(max_iter,1)>0.5)-1)'];
? ?a=min(X);
? ?b=max(X);
? ?c=lb(i);
? ?d=ub(i);
? ?RWs(:,i)=((X-a).*(d-c))./(b-a)+c;
end
3 仿真結(jié)果


4 參考文獻
[1] Singh, D. , and? B. Singh . "Effective and efficient classification of gastrointestinal lesions: combining data preprocessing, feature weighting, and improved ant lion optimization." Journal of Ambient Intelligence and Humanized Computing 6(2020).
博主簡介:擅長智能優(yōu)化算法、神經(jīng)網(wǎng)絡(luò)預(yù)測、信號處理、元胞自動機、圖像處理、路徑規(guī)劃、無人機等多種領(lǐng)域的Matlab仿真,相關(guān)matlab代碼問題可私信交流。
部分理論引用網(wǎng)絡(luò)文獻,若有侵權(quán)聯(lián)系博主刪除。
