som/som.py
def update(self, learning_rate, influence, input_vector, bmu):
        """Updates the weight vector of this node to become more like the input
        vector, according to a certain factor.
        """
        factor = learning_rate * influence
        self.vector = [x + factor * (y - x)
                       for x, y in zip(self.vector, input_vector)]
Updates the weight vector of this node to become more like the input
        vector, according to a certain factor.
        
Updates the weight vector of this node to become more like the input
vector, according to a certain factor.
Updates the weight vector of this node to become more like the input vector according to a certain factor .
def update(self, learning_rate, influence, input_vector, bmu):
        factor = learning_rate * influence
        self.vector = [x + factor * (y - x)
                       for x, y in zip(self.vector, input_vector)]
def update ( self , learning_rate , influence , input_vector , bmu ) : factor = learning_rate * influence self . vector = [ x + factor * ( y - x ) for x , y in zip ( self . vector , input_vector ) ]
Updates the weight vector of this node to become more like the input
vector, according to a certain factor.
Updates the weight vector of this node to become more like the input vector according to a certain factor .
"""Updates the weight vector of this node to become more like the input
        vector, according to a certain factor.
        """
self
learning_rate
influence
input_vector
bmu