Perform a trainable radial basis expansion, where the centers and
sizes of the basis functions are learned through a growing neural
gas.
Important: Adjust the maximum number of nodes to control the
dimension of the expansion.
More information on this expansion type can be found in:
B. Fritzke.
Growing cell structures-a self-organizing network for unsupervised
and supervised learning. Neural Networks 7, p. 1441--1460 (1994).
|
__init__(self,
start_poss=None,
eps_b=0.2,
eps_n=0.006,
max_age=50,
lambda_=100,
alpha=0.5,
d=0.995,
max_nodes=100,
input_dim=None,
dtype=None)
For a full list of input arguments please check the documentation
of GrowingNeuralGasNode. |
|
|
|
|
|
|
|
|
|
|
|
execute(self,
x)
Process the data contained in x . |
|
|
|
|
Inherited from unreachable.newobject :
__long__ ,
__native__ ,
__nonzero__ ,
__unicode__ ,
next
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
|
|
|
|
|
_get_nearest_nodes(self,
x)
Return the two nodes in the graph that are nearest to x and their
squared distances. (Return ([node1, node2], [dist1, dist2]) |
|
|
|
_insert_new_node(self)
Insert a new node in the graph where it is more necessary (i.e.
where the error is the largest). |
|
|
|
_move_node(self,
node,
x,
eps)
Move a node by eps in the direction x. |
|
|
|
|
|
|
|
|
|
nearest_neighbor(self,
input)
Assign each point in the input data to the nearest node in
the graph. Return the list of the nearest node instances, and
the list of distances.
Executing this function will close the training phase if
necessary. |
|
|
|
train(self,
input)
Update the internal structures according to the input data x . |
|
|
|
|
|
__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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inverse(self,
y,
*args,
**kwargs)
Invert y . |
|
|
|
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. |
|
|
|
|
|
|