som/som.py
def distance_sq(self, other_vector):
        """Calculates the squared distance between the weight vector of this
        node and another one.
        """
        return sum((x - y) ** 2 for x, y in zip(self.vector, other_vector))
Calculates the squared distance between the weight vector of this
        node and another one.
        
Calculates the squared distance between the weight vector of this
node and another one.
Calculates the squared distance between the weight vector of this node and another one .
def distance_sq(self, other_vector):
        return sum((x - y) ** 2 for x, y in zip(self.vector, other_vector))
def distance_sq ( self , other_vector ) : return sum ( ( x - y ) ** 2 for x , y in zip ( self . vector , other_vector ) )
Calculates the squared distance between the weight vector of this
node and another one.
Calculates the squared distance between the weight vector of this node and another one .
"""Calculates the squared distance between the weight vector of this
        node and another one.
        """
self
other_vector