| 查看: 314 | 回复: 0 | ||
chenshufang新虫 (初入文坛)
|
[求助]
prosam程序
|
|
bplsda(boosting plsda)算法中将原来的三类该为两类后 ,运行时发现prosam子程序出错,我不明白哪出错了,有哪位大神明白prosam程序的。下面是主程序里嵌有prosam while t<=rd ttt=ttt+1; [index]=prosam(wt,samn,13); xcc=xc(index, ;ycc=yyyc(index, ; [ycpls,yppls]=plsfitcv2(xcc,ycc,xc,xp,tot); indine=find(ycpls~=ClassIdc); loss(t)=sum(wt(indine)); prosam程序: function [ee]=prosam(per,sam,k) rand('state',k) csc=[0;cumsum(per)]; ee=[]; for i=1:sam x=rand(1,1); for j=1:length(csc)-1 if (csc(j)<=x&x<csc(j+1))==1 e=j; end end ee=[ee,e]; end |
» 猜你喜欢
韩国釜山大学储能电池与功能材料实验室诚招博后(电池/电化学/器件制备/MOF合成)
已经有187人回复
祈福!
已经有79人回复
物理化学论文润色/翻译怎么收费?
已经有57人回复
散金求好运
已经有315人回复
博士生招生, 材料模拟方向,University of South Carolina
已经有0人回复
Postdoc position, materials simulations/machine learning, U. of South Carolina
已经有0人回复
祈福青基
已经有34人回复
牛来!米来!面来!
已经有8人回复
2027申博咨询
已经有11人回复
寻求CrC2Al的cif文件,感谢
已经有0人回复
大湾区大学刘天辉课题组招收2027级博士生(与中山大学物理学院联合培养)
已经有51人回复










;
回复此楼