|
__init__(self,
n,
d=1,
input_dim=None,
dtype=None)
Input arguments:... |
|
|
|
|
|
|
|
|
|
get_maxima(self)
Return the tuple (maxima, indices). |
|
|
|
get_minima(self)
Return the tuple (minima, indices). |
|
|
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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_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'. |
|
|