mvpa2.clfs.meta.Harvestable

Inheritance diagram of Harvestable

class mvpa2.clfs.meta.Harvestable(harvest_attribs=None, copy_attribs='copy', **kwargs)

Classes inherited from this class intend to collect attributes within internal processing.

Subclassing Harvestable we gain ability to collect any internal data from the processing which is especially important if an object performs something in loop and discards some intermidiate possibly interesting results (like in case of CrossValidatedTransferError and ca of the trained classifier or TransferError).

Notes

Available conditional attributes:

  • harvested: Store specified attributes of classifiers at each split

(Conditional attributes enabled by default suffixed with +)

Initialize state of harvestable

Parameters :

harvest_attribs : list of (str or dict)

What attributes of call to store and return within harvested conditional attribute. If an item is a dictionary, following keys are used [‘name’, ‘copy’].

copy_attribs : None or str, optional

Default copying. If None – no copying, ‘copy’ - shallow copying, ‘deepcopy’ – deepcopying.

enable_ca : None or list of str

Names of the conditional attributes which should be enabled in addition to the default ones

disable_ca : None or list of str

Names of the conditional attributes which should be disabled

descr : str

Description of the instance

harvest_attribs

NeuroDebian

NITRC-listed