Package mvpa :: Package misc :: Module state
[hide private]
[frames] | no frames]

Module state

source code

Classes to control and store state information.

It was devised to provide conditional storage

Classes [hide private]
  CollectableAttribute
Base class for any custom behaving attribute intended to become part of a collection.
  AttributeWithUnique
Container which also takes care about recomputing unique values
  SampleAttribute
  FeatureAttribute
  DatasetAttribute
  StateVariable
Simple container intended to conditionally store the value
  Collection
Container of some CollectableAttributes.
  ParameterCollection
Container of Parameters for a stateful object.
  SampleAttributesCollection
Container for data and attributes of samples (ie data/labels/chunks/...)
  StateCollection
Container of StateVariables for a stateful object.
  AttributesCollector
Intended to collect and compose StateCollection for any child class of this metaclass
  ClassWithCollections
Base class for objects which contain any known collection
  Stateful
Base class for objects which contain any known collection
  Parametrized
Base class for objects which contain any known collection
  Harvestable
Classes inherited from this class intend to collect attributes within internal processing.
Functions [hide private]
 
_object_getattribute(...)
x.__getattribute__('name') <==> x.name
source code
 
_object_setattr(...)
x.__setattr__('name', value) <==> x.name = value
source code
Variables [hide private]
  _known_collections = {'StateVariable':("states", StateCollecti...
  _col2class = dict(_known_collections.values())
Mapping from collection name into Collection class
  _COLLECTIONS_ORDER = ['s_attr', 'f_attr', 'ds_attr', 'params',...

Imports: operator, copy, Set, TextWrapper, N, VProperty, UnknownStateError, enhancedClassDocString, debug


Variables Details [hide private]

_known_collections

Value:
{'StateVariable':("states", StateCollection), 'Parameter':("params", P\
arameterCollection), 'KernelParameter':("kernel_params", ParameterColl\
ection), 'SampleAttribute':("s_attr", SampleAttributesCollection), 'Fe\
atureAttribute':("f_attr", SampleAttributesCollection), 'DatasetAttrib\
ute':("ds_attr", SampleAttributesCollection),}

_COLLECTIONS_ORDER

Value:
['s_attr', 'f_attr', 'ds_attr', 'params', 'kernel_params', 'states']