|
__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. |
|
|
|
_insert_new_node(self)
Insert a new node in the graph where it is more necessary (i.e. |
|
|
|
_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. |
|
|
|
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`. |
|
|
|
set_dtype(self,
t)
Set internal structures' dtype. |
|
|
|
|
|
|