Multivariate Pattern Analysis in Python |
Inheritance diagram for mvpa.misc.state:
Classes to control and store state information.
It was devised to provide conditional storage
Bases: type
Intended to collect and compose StateCollection for any child class of this metaclass
Bases: object
Base class for objects which contain any known collection
Classes inherited from this class gain ability to access collections and their items as simple attributes. Access to collection items “internals” is done via <collection_name> attribute and interface of a corresponding Collection.
Description of the object if any
Bases: object
Container of some CollectableAttributes.
Groups : |
XXX Seems to be not used and duplicating functionality: _getListing (thus listing property) |
---|
Initialize the Collection
Parameters: |
|
---|
Add a new CollectableAttribute to the collection
Parameters: | item (CollectableAttribute) – or of derived class. Must have ‘name’ assigned |
---|
wrong type into Collection since it might lead to problems
Also we might convert to __setitem__
Access the value by a given index.
Mimiquing regular dictionary behavior, if value cannot be obtained (i.e. if any exception is caught) return default value.
Returns True if state index is known at all
If item (or any in the present or listed) was set
Parameters: | index (None or basestring or list of basestring) – What items to check if they were set in the collection |
---|
Return ids for all registered state variables
Remove item from the collection
Reset the state variable defined by index
Return list of indexes which were set
Bases: mvpa.misc.state.ClassWithCollections
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 states of the trained classifier or TransferError).
Note
Available state variables:
(States enabled by default are listed with +)
See also
Please refer to the documentation of the base class for more information:
Initialize state of harvestable
Parameters: |
|
---|
Bases: mvpa.misc.state.Collection
Container of Parameters for a stateful object.
Initialize the Collection
Parameters: |
|
---|
Reset all parameters to default values
Bases: mvpa.misc.state.Collection
Container for data and attributes of samples (ie data/labels/chunks/...)
Initialize the Collection
Parameters: |
|
---|
Bases: mvpa.misc.state.Collection
Container of StateVariables for a stateful object.
Groups : |
|
---|
Initialize the state variables of a derived class
Parameters: |
|
---|
Disable state variable defined by index id
Enable state variable given in index
Return list of enabled states
Parameters: |
|
---|
Returns True if state index is known and is enabled
Returns True if state index is enabled