Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: sequentialfs fun problem
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 109
Registered: 5/14/11
sequentialfs fun problem
Posted: Mar 24, 2013 9:26 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

the example in matlab of sequentialfs
load fisheriris;
X = randn(150,10);
X(:,[1 3 5 7 ])= meas;
y = species;

c = cvpartition(y,'k',10);
opts = statset('display','iter');
fun = @(XT,yT,Xt,yt)...

[fs,history] = sequentialfs(fun,X,y,'cv',c,'options',opts)

how can I get fun for any other classifier like(classify) if I have (xtrain, ytrain, xtest, ytest) for that classifier but I can't run the other classifier in 1 step to get its fun like the LDA classifier:

fun = @(XT,yT,Xt,yt)...

if I have (xtrain, ytrain, xtest, ytest) how can I use sequentialfs function??

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.