資源簡介
這是FCBF的matlab程序。FCBF是比較實用的特征選擇和降維的方法。在這個文件里面,有個word文件詳細說明了FCBF的使用方法。本站只有FCBF的java程序。
代碼片段和文件信息
function?[out]?=??fsFCBF(XY)
%Using?Weka‘s?feature?selection?algorithm
%?X??the?features?on?current?trunk?each?colum?is?a?feature?vector?on?all
%?????instances?and?each?row?is?a?part?of?the?instance
%?Y??the?label?of?instances?in?single?column?form:?1?2?3?4?5?...
%?a.E?=?‘weka.attributeSelection.SymmetricalUncertAttributeSetEval‘;
%?a.S?=?‘weka.attributeSelection.FCBFSearch?-D?false?-T?-1.7976931348623157E308?-N?-1‘;
tempY?=?SY2MY(Y);
t?=?weka.filters.supervised.attribute.AttributeSelection();
??
%%?handle?options
a.E?=?‘weka.attributeSelection.SymmetricalUncertAttributeSetEval‘;
a.S?=?‘weka.attributeSelection.FCBFSearch?-D?false?-T?-1.7976931348623157E308?-N?-1‘;
tmp=wekaArgumentString({‘-E‘a.E});
tmp=wekaArgumentString({‘-S‘a.S}tmp);
t.setOptions(tmp);
%%?train?classifier
c
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????13930??2014-04-02?16:26??FCBF特征選擇使用說明.docx
?????文件???????1126??2009-12-03?11:25??fsFCBF.m
-----------?---------??----------?-----??----
????????????????15056????????????????????2
評論
共有 條評論