|
_fork(self)
Hook method for forking, to be overridden. |
|
|
|
_join(self,
forked_node)
Hook method for joining, to be overridden. |
|
|
|
fork(self)
Return a new instance of this node class for remote training. |
|
|
|
join(self,
forked_node)
Absorb the trained node from a fork into this parent node. |
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__
|
|
|
|
__call__(self,
x,
*args,
**kargs)
Calling an instance of Node is equivalent to call
its 'execute' method. |
|
|
|
__init__(self,
input_dim=None,
output_dim=None,
dtype=None)
If the input dimension and the output dimension are
unspecified, they will be set when the 'train' or 'execute'
method is called for the first time. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_refcast(self,
x)
Helper function to cast arrays to the internal dtype. |
|
|
|
|
|
|
|
|
|
|
|
|
|
copy(self,
protocol=-1)
Return a deep copy of the node. |
|
|
|
execute(self,
x,
*args,
**kargs)
Process the data contained in 'x'. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inverse(self,
y,
*args,
**kargs)
Invert 'y'. |
|
|
|
is_invertible(self)
Return True if the node can be inverted, False otherwise. |
|
|
|
is_trainable(self)
Return True if the node can be trained, False otherwise. |
|
|
|
is_training(self)
Return True if the node is in the training phase,
False otherwise. |
|
|
|
save(self,
filename,
protocol=-1)
Save a pickled serialization of the node to 'filename'. |
|
|
|
set_dtype(self,
t)
Set internal structures' dtype. |
|
|
|
|
|
|
|
|
|
train(self,
x,
*args,
**kwargs)
Update the internal structures according to the input data 'x'. |
|
|