Package mvpa :: Package clfs :: Module warehouse :: Class Warehouse
[hide private]
[frames] | no frames]

Class Warehouse

source code


Class to keep known instantiated classifiers

Should provide easy ways to select classifiers of needed kind: clfswh['linear', 'svm'] should return all linear SVMs clfswh['linear', 'multiclass'] should return all linear classifiers capable of doing multiclass classification

Instance Methods [hide private]
 
__init__(self, known_tags=None, matches=None)
Initialize warehouse
source code
 
__getitem__(self, *args) source code
 
__iadd__(self, item) source code
 
internals(self)
Known internal tags of the classifiers
source code
 
listing(self)
Listing (description + internals) of registered items
source code
 
items(self)
Registered items
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, known_tags=None, matches=None)
(Constructor)

source code 
Initialize warehouse
Parameters:
  • known_tags (list of basestring) - List of known tags
  • matches (dict) - Optional dictionary of additional matches. E.g. since any regression can be used as a binary classifier, matches={'binary':['regression']}, would allow to provide regressions also if 'binary' was requested
Overrides: object.__init__

internals(self)

source code 
Known internal tags of the classifiers
Decorators:
  • @property

items(self)

source code 
Registered items
Decorators:
  • @property