[pymvpa] RFE question #1 - short version

Mark Lescroart lescroar at usc.edu
Tue Nov 24 06:28:29 UTC 2009


Hello,

Real quick:  Besides "None", what other arguments can you input for  
"combiner=???" in a sensitivity analyzer for a feature selection  
classifier? I see that it's supposed to be a "functor", whatever that  
is, but some examples would be very helpful.

Cheers,

Mark

splitter = NFoldSplitter(cvtype=1)
rfesvm_split = SplitClassifier(LinearCSVMC(),splitter)
FtSelClf = FeatureSelectionClassifier(
	# use a linear SVM classifier:
	clf = LinearCSVMC(),
	# on features selected via RFE
	feature_selection = RFE(
		# based on sensitivity of a clf which does splitting internally
		 
sensitivity_analyzer=rfesvm_split.getSensitivityAnalyzer(combiner=<??? 
 >,transformer=absolute)
		transfer_error=ConfusionBasedError(
			rfesvm_split,
			confusion_state="confusion"),
		# and whose internal error we use
		feature_selector=FractionTailSelector(
			0.2, mode='discard', tail='lower'),
		# remove 20% of features at each step
		enable_states=['feature_ids'],
		# update sensitivity at each step
		update_sensitivity=True),
	descr='LinSVM+RFE(splits_avg)')

~~~~~~~~~~~~~~~~~~~~~~~~~~

Mark Lescroart
(say it LESS-qua)

University of Southern California
Neuroscience Graduate Program
Image Understanding Lab
Email: mark.lescroart at usc.edu
Cell: (213) 447-0752

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20091123/a6bdf746/attachment.htm>


More information about the Pkg-ExpPsy-PyMVPA mailing list