Package mdp :: Class ExtensionNodeMetaclass
[hide private]
[frames] | no frames]

Type ExtensionNodeMetaclass


This is the metaclass for node extension superclasses.

It takes care of registering extensions and the methods in the
extension.

Instance Methods [hide private]

Inherited from type: __call__, __cmp__, __delattr__, __getattribute__, __hash__, __repr__, __setattr__, __subclasses__, mro

Inherited from object: __init__, __reduce__, __reduce_ex__, __str__

Static Methods [hide private]
a new object with type S, a subtype of T

__new__(cls, classname, bases, members)
Create new node classes and register extensions.
    Inherited from Node.__metaclass__
 
_get_infodict(func)
Returns an info dictionary containing: - name (the name of the function : str) - argnames (the names of the arguments : list) - defaults (the values of the default arguments : tuple) - signature (the signature : str) - doc (the docstring : str) - module (the module name : str) - dict (the function __dict__ : str)
 
_wrap_function(original_func, wrapper_infodict)
Return a wrapped version of func.
 
_wrap_method(wrapper_infodict, cls)
Return a wrapped version of func.
Class Variables [hide private]
    Inherited from Node.__metaclass__
  DOC_METHODS = ['_train', '_stop_training', '_execute', '_inver...
Properties [hide private]

Inherited from type: __base__, __bases__, __basicsize__, __dictoffset__, __flags__, __itemsize__, __mro__, __name__, __weakrefoffset__

Inherited from object: __class__

Method Details [hide private]

__new__(cls, classname, bases, members)
Static Method

 
Create new node classes and register extensions.

If a concrete extension node is created then a corresponding mixin
class is automatically created and registered.

Returns:
a new object with type S, a subtype of T

Overrides: object.__new__