som/som.py
def update_neighbours(self, iteration, iterations, input_vector, bmu):
        """Updates the neighbours of the BMU according to the new input."""

        t = iteration / iterations
        learning_rate = self.learning_rate(t)
        for node in self.codebook:
            influence = self.codebook.neighbourhood(node, bmu, t)
            node.update(learning_rate, influence, input_vector, bmu)
Updates the neighbours of the BMU according to the new input.
Updates the neighbours of the BMU according to the new input.
Updates the neighbours of the BMU according to the new input .
def update_neighbours(self, iteration, iterations, input_vector, bmu):
        t = iteration / iterations
        learning_rate = self.learning_rate(t)
        for node in self.codebook:
            influence = self.codebook.neighbourhood(node, bmu, t)
            node.update(learning_rate, influence, input_vector, bmu)
def update_neighbours ( self , iteration , iterations , input_vector , bmu ) : t = iteration / iterations learning_rate = self . learning_rate ( t ) for node in self . codebook : influence = self . codebook . neighbourhood ( node , bmu , t ) node . update ( learning_rate , influence , input_vector , bmu )
Updates the neighbours of the BMU according to the new input.
Updates the neighbours of the BMU according to the new input .
"""Updates the neighbours of the BMU according to the new input."""
self
iteration
iterations
input_vector
bmu