91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 0.03M
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2021-03-26
  • 語(yǔ)言: 其他
  • 標(biāo)簽: 其他??

資源簡(jiǎn)介


極限學(xué)習(xí)機(jī)完整算法在matlab中的實(shí)現(xiàn),內(nèi)含數(shù)據(jù)集。。

資源截圖

代碼片段和文件信息

%此程序與elm11運(yùn)行正確率差不多,程序構(gòu)成也幾乎相同
%%?導(dǎo)入數(shù)據(jù)集
%導(dǎo)入訓(xùn)練數(shù)據(jù)集
clear;
data=xlsread(‘train2.xlsx‘);
traindata?=?data(:2:6);?????????????%訓(xùn)練數(shù)據(jù)集
trainlabel?=?data(:1)‘;??????????????%標(biāo)簽
[N1n1]?=?size(traindata);
L?=?25;??????????????????????????????%隱層節(jié)點(diǎn)個(gè)數(shù)
m=5;?????????????????????????????????%要分的類別數(shù)
%導(dǎo)入測(cè)試數(shù)據(jù)集
B=xlsread(‘test2.xlsx‘);
testdata?=?B(:2:6);?????????????????%測(cè)試數(shù)據(jù)集
testlabel?=?B(:1)‘;?????????????????%標(biāo)簽
[N2n2]?=?size(testdata);
%%?數(shù)據(jù)預(yù)處理
traindata=traindata‘;
testdata=testdata‘;
[traindatainputps]?=?mapminmax(traindata-11);?%訓(xùn)練數(shù)據(jù)
testdata?=?mapminmax(‘a(chǎn)pply‘testdatainputps);%測(cè)試數(shù)據(jù)

%對(duì)標(biāo)簽作處理,由一維變多維,最后判斷標(biāo)簽時(shí),選擇每組數(shù)據(jù)中最大值的位置,
%作為該組訓(xùn)練/測(cè)試數(shù)據(jù)的預(yù)測(cè)標(biāo)簽值,避免標(biāo)簽值范圍分布太廣
temp_T=zeros(mN1);
for?i=1:N1
????switch?trainlabel(i)
????????case?1
????????????temp_T(1i)=1;
????????case?2
????????????temp_T(2i)=1;
????????case?3
????????????temp_T(3i)=1;
????????case?4
????????????temp_T(4i)=1;
????????otherwise
????????????temp_T(5i)=1;
????end
end
T=temp_T*2-1;
%%?訓(xùn)練,

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????2362??2018-05-15?16:47??elm25.m
?????文件??????????57??2018-04-04?09:14??g.m
?????文件???????14975??2018-04-16?00:13??test2.xlsx
?????文件???????18321??2018-04-16?00:11??train2.xlsx

評(píng)論

共有 條評(píng)論