This node implements "information-preserving graph-based SFA (iGSFA)",
which is the main component of hierarchical iGSFA (HiGSFA).
For further information, see: Escalante-B., A.-N. and Wiskott, L.,
"Improved graph-based {SFA}: Information preservation complements the
slowness principle", e-print arXiv:1601.03945,
http://arxiv.org/abs/1601.03945, 2017.
|
__init__(self,
pre_expansion_node_class=None,
pre_expansion_out_dim=None,
expansion_funcs=None,
expansion_output_dim=None,
expansion_starting_point=None,
max_length_slow_part=None,
slow_feature_scaling_method=None,
delta_threshold=1.999,
reconstruct_with_sfa=False,
verbose=False,
input_dim=None,
output_dim=None,
dtype=None,
**argv)
Initializes the iGSFA node. |
|
|
|
_execute(self,
x)
Extracts iGSFA features from some data. |
|
|
|
_inverse(self,
y,
linear_inverse=True)
This method approximates an inverse function to the feature
extraction. |
|
|
|
|
|
_train(self,
x,
block_size=None,
train_mode=None,
node_weights=None,
edge_weights=None,
verbose=None,
**argv)
Trains an iGSFA node on data 'x' |
|
|
|
execute(self,
x)
Extracts iGSFA features from some data. The node must have been
already trained. |
|
|
|
inverse(self,
y,
linear_inverse=True)
This method approximates an inverse function to the feature
extraction. |
|
|
|
linear_inverse(self,
y,
verbose=True)
Linear inverse approximation method. |
|
|
|
multiple_train(self,
x,
block_size=None,
train_mode=None,
node_weights=None,
edge_weights=None,
verbose=None)
This function should not be called directly. Use instead the train
method, which will decide whether multiple-training is enabled, and
call this function if needed. |
|
|
|
|
|
|
|
train(self,
x,
block_size=None,
train_mode=None,
node_weights=None,
edge_weights=None,
verbose=None,
**argv)
Trains an iGSFA node on data 'x' |
|
|
Inherited from unreachable.newobject :
__long__ ,
__native__ ,
__nonzero__ ,
__unicode__ ,
next
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
|
|
|
__call__(self,
x,
*args,
**kwargs)
Calling an instance of Node is equivalent to calling
its execute method. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_refcast(self,
x)
Helper function to cast arrays to the internal dtype. |
|
|
|
|
|
|
|
|
|
copy(self,
protocol=None)
Return a deep copy of the node. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 .
If filename is None, return a string. |
|
|
|
set_dtype(self,
t)
Set internal structures' dtype. |
|
|
|
|
|
|