[pymvpa] Sensitivity map with RFE?

Roberto Guidotti robbenson18 at gmail.com
Fri Jul 12 09:36:21 UTC 2013


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 <tettamanti.marco at hsr.it> 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: tettamanti.marco at hsr.it
> 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:www.5xmille at hsr.it - www.5xmille.org
>
> Disclaimer added by CodeTwo Exchange Rules 2007
> http://www.codetwo.com
>
>
> ______________________________**_________________
> Pkg-ExpPsy-PyMVPA mailing list
> Pkg-ExpPsy-PyMVPA at lists.**alioth.debian.org<Pkg-ExpPsy-PyMVPA at lists.alioth.debian.org>
> http://lists.alioth.debian.**org/cgi-bin/mailman/listinfo/**
> pkg-exppsy-pymvpa<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20130712/1b6733da/attachment.html>


More information about the Pkg-ExpPsy-PyMVPA mailing list