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

  • 大小: 24KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-01
  • 語言: Matlab
  • 標簽: smote??MATALB??

資源簡介

此代碼為MATLAB代碼,介紹的是SMOTE算法,里面有算法流程和詳細說明

資源截圖

代碼片段和文件信息

function????prediction=HardEnsemble(componentClassTypeC)
%?Implement?hard-ensemble?method
%?In?this?method?every?component?learner?votes?(0-1?vote?method)
%?for?a?class?and?then?the?class?receiving?the?biggest?number?of?votes?
%?is?returned.?If?a?tie?appears?that?is?there?are?multiple?classes?
%?receiving?the?biggest?number?of?votes?then?the?class?with?the
%?biggest?cost?is?returned.
%
%Usage
%??prediction=HardEnsemble(componentClassTypeC)
%
%??prediction:?predictions?of?the?hard-ensemble
%??component:?cell?array?which?contains?at?least?3?component?learner‘s
%?????????????????????prediction?vectors?of?test?instances.?
%??ClassType:?class?type.
%??C:?cost?vector.?C[i]?is?the?cost?of?misclassifying?ith?class
%??????instance?without?considering?the?concrete?class?the?instance?has
%??????been?wrongly?assigned?to.

if(nargin<3)
????help?HardEnsemble
end
Nc=length(component);
if(Nc<3)
????error(‘not?enough?components.‘)
end
N=length(component{1});
for?i=2:Nc
????????if(size(component{i}2)~=N)
????????????error(‘the?number?of?predictions?of?component?learners?do?no?consistent.‘)
????????end
????????if(size(component{i}1)~=1)
????????????error(‘input?prediction?vector?should?be?row?vector.‘)
????????end
end

pred=LabelFormatConvertion(component{1}ClassType);
for?i=2:Nc
????pred=pred+LabelFormatConvertion(component{i}ClassType);
end
maxv=max(pred);
maxv=repmat(maxvsize(pred1)1);
c=repmat(C‘1N);
maxclass=(pred==maxv).*c;
[tmpid]=max(maxclass);
prediction=ClassType(id);
%end
??????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????3515??2004-11-25?19:51??matlab的smote\echocardiogram.mat

?????文件???????1561??2004-11-28?22:50??matlab的smote\HardEnsemble.m

?????文件???????2263??2004-11-28?21:41??matlab的smote\OverSampling.m

?????文件???????2789??2015-10-29?21:45??matlab的smote\sample_HardEnsemble_SoftEnsemble.m

?????文件???????1186??2004-11-28?21:40??matlab的smote\sample_OverSampling.m

?????文件???????1228??2004-11-28?22:43??matlab的smote\sample_SmoteOverSampling.m

?????文件???????1061??2004-11-28?20:09??matlab的smote\sample_ThresholdMovNN.m

?????文件???????1200??2004-11-26?14:42??matlab的smote\sample_UnderSampling.m

?????文件???????4804??2004-11-28?22:25??matlab的smote\SMOTE.m

?????文件???????2735??2004-11-28?22:41??matlab的smote\SmoteOverSampling.m

?????文件???????1499??2004-11-28?22:53??matlab的smote\SoftEnsemble.m

?????文件???????1930??2004-11-28?22:16??matlab的smote\ThresholdMovNN.m

?????文件???????7112??2004-11-28?21:45??matlab的smote\UnderSampling.m

?????文件???????3504??2004-11-28?19:02??matlab的smote\Utilities\CostMatrix.m

?????文件???????1584??2004-11-28?20:50??matlab的smote\Utilities\dist_nominal.m

?????文件???????2048??2004-11-28?20:18??matlab的smote\Utilities\LabelFormatConvertion.m

?????文件????????585??2004-11-28?20:16??matlab的smote\Utilities\Locate.m

?????文件???????1482??2004-05-19?17:24??matlab的smote\Utilities\NNoutputFormat.m

?????文件????????182??2004-11-28?19:44??matlab的smote\Utilities\normalize.m

?????文件???????2621??2004-11-28?20:43??matlab的smote\Utilities\VDM.m

?????文件???????8743??2018-05-28?16:02??matlab的smote\說明.txt

?????目錄??????????0??2018-05-28?16:02??matlab的smote\Utilities

?????目錄??????????0??2018-05-28?16:02??matlab的smote

-----------?---------??----------?-----??----

????????????????53632????????????????????23


評論

共有 條評論