Home | Trees | Indices | Help |
|
---|
|
Classifier cross-validation.
This class provides a simple interface to cross-validate a classifier on datasets generated by a splitter from a single source dataset.
Arbitrary performance/error values can be computed by specifying an error function (used to compute an error value for each cross-validation fold) and a combiner function that aggregates all computed error values across cross-validation folds.
|
|||
Inherited from |
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
results = StateVariable(enabled= False, doc= """Store individu
|
|||
splits = StateVariable(enabled= False, doc= """Store the actua
|
|||
transerrors = StateVariable(enabled= False, doc= """Store copi
|
|||
confusion = StateVariable(enabled= False, doc= """Store total
|
|||
training_confusion = StateVariable(enabled= False, doc= """Sto
|
|||
samples_error = StateVariable(enabled= False, doc= "Per sample
|
|||
splitter = property(fget= lambda self: self.__splitter, doc= "
|
|||
transerror = property(fget= lambda self: self.__transerror, do
|
|||
combiner = property(fget= lambda self: self.__combiner, doc= "
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
:Parameters: transerror: TransferError instance Provides the classifier used for cross-validation. splitter: Splitter | None Used to split the dataset for cross-validation folds. By convention the first dataset in the tuple returned by the splitter is used to train the provided classifier. If the first element is 'None' no training is performed. The second dataset is used to generate predictions with the (trained) classifier. If `None` (default) an instance of :class:`~mvpa.datasets.splitters.NoneSplitter` is used. combiner: Functor | 'mean' Used to aggregate the error values of all cross-validation folds. If 'mean' (default) the grand mean of the transfer errors is computed. expose_testdataset: bool In the proper pipeline, classifier must not know anything about testing data, but in some cases it might lead only to marginal harm, thus migth wanted to be enabled (provide testdataset for RFE to determine stopping point). harvest_attribs: list of basestr What attributes of call to store and return within harvested state variable copy_attribs: None | basestr Force copying values of attributes on harvesting **kwargs: All additional arguments are passed to the :class:`~mvpa.measures.base.DatasetMeasure` base class.
|
Perform cross-validation on a dataset. 'dataset' is passed to the splitter instance and serves as the source dataset to generate split for the single cross-validation folds.
|
|
results
|
splits
|
transerrors
|
confusion
|
training_confusion
|
samples_error
|
splitter
|
transerror
|
combiner
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Apr 23 23:09:14 2012 | http://epydoc.sourceforge.net |