Dear Marco, >From your snippet I notice that you get the sensitivity analyzer without run any CrossValidation/Classification.
So try to run ------- err = fclfsvm(fds) #That let you to cross validate/classify/select features on your dataset ------- This let you to train your object and then you can get the sensitivity of your classifier. I've never used RFE, but this is what I get by your snippet. Ciao Roberto On 12 July 2013 11:04, marco tettamanti <[email protected]> wrote: > Dear all, > is there any manner to obtain a sensitivity map with RFE, similar to what > can be done with feature selection? > > I am trying to use the following code: > > #-----------------------------**-------------------- > clfsvm = LinearCSVMC() > > rfesvm = RFE(clfsvm.get_sensitivity_**analyzer(postproc=maxofabs_**sample()), > CrossValidation(clfsvm, NFoldPartitioner(), errorfx=mean_mismatch_error, > postproc=mean_sample()), Repeater(2), fselector=**FractionTailSelector(0.30, > mode='select', tail='upper'), > stopping_criterion=**NBackHistoryStopCrit(**BestDetector(), > 10), update_sensitivity=True) > > fclfsvm = FeatureSelectionClassifier(**clfsvm, rfesvm) > > sensanasvm = fclfsvm.get_sensitivity_**analyzer(postproc=maxofabs_** > sample()) > > cv_sensana_svm = RepeatedMeasure(sensanasvm, NFoldPartitioner()) > > senssvm = cv_sensana_svm(fds) > #-----------------------------**-------------------- > > However, after a while I get the following error: > > RuntimeError: Cannot reverse-map data since the original data shape is > unknown. Either set `dshape` in the constructor, or call train(). > > > Thank you in advance for any help! > Best wishes, > Marco > > -- > Marco Tettamanti, Ph.D. > Nuclear Medicine Department & Division of Neuroscience > San Raffaele Scientific Institute > Via Olgettina 58 > I-20132 Milano, Italy > Phone ++39-02-26434888 > Fax ++39-02-26434892 > Email: [email protected] > Skype: mtettamanti > ------------------------------**------------------------------** > -------------- > LA TUA CURA E' SCRITTA NEL TUO DNA. AL SAN RAFFAELE LA STIAMO REALIZZANDO. > AIUTA LA RICERCA, DAI IL TUO 5XMILLE - CF: 07636600962 > info:[email protected] - www.5xmille.org > > Disclaimer added by CodeTwo Exchange Rules 2007 > http://www.codetwo.com > > > ______________________________**_________________ > Pkg-ExpPsy-PyMVPA mailing list > Pkg-ExpPsy-PyMVPA@lists.**alioth.debian.org<[email protected]> > http://lists.alioth.debian.**org/cgi-bin/mailman/listinfo/** > pkg-exppsy-pymvpa<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa> >
_______________________________________________ Pkg-ExpPsy-PyMVPA mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa

