I am experiencing a problem implementing sequential feature selection

function misclass = PartLDA(XT,yT,Xt,yt) lda = fitcdiscr(XT,yT,'discrimType','pseudolinear'); %perform LDA ldaClass = resubPredict(lda); %prediction misclass=sum(ldaClass ~= yT); %calculate missclassification rate end
[fs,history] = sequentialfs(@PartLDA,X,Y,'cv',C,'options',opts,'direction',direction) Error using sequentialfs (line 345) All input arguments must be tables.
Error in Untitled22 (line 84) [fs,history] = sequentialfs(@PartLDA,X,Y,'cv',C,'options',opts,'direction',direction)

답변 (0개)

카테고리

도움말 센터File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

제품

태그

질문:

2017년 7월 25일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by