![]() |
Multivariate Pattern Analysis in Python |
Cross-validate a classifier on a dataset
The comprehensive API documentation for this module, including all technical details, is available in the Epydoc-generated API reference for mvpa.algorithms.cvtranserror (for developers).
Bases: mvpa.measures.base.DatasetMeasure, mvpa.misc.state.Harvestable
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.
Note
Available state variables:
- confusion: Store total confusion matrix (if available)
- harvested: Store specified attributes of classifiers at each split
- null_prob+: State variable
- null_t: State variable
- raw_result: Computed results before applying any transformation algorithm
- results: Store individual results in the state
- samples_error: Per sample errors.
- splits: Store the actual splits of the data. Can be memory expensive
- training_confusion: Store total training confusion matrix (if available)
- transerrors: Store copies of transerrors at each step
(States enabled by default are listed with +)
See also
Please refer to the documentation of the base classes for more information:
| Parameters: |
|
|---|
See also
Derived classes might provide additional methods via their base classes. Please refer to the list of base classes (if it exists) at the begining of the CrossValidatedTransferError documentation.
Full API documentation of CrossValidatedTransferError in module mvpa.algorithms.cvtranserror.