contextnet/utils/utils.py
def matrix(self, container1, container2):
        """
        Returns the matrix of measure values between two sets of objects
        Sometimes can be implemented in a faster way than making couplewise measurements
        """
        matrix = np.zeros((len(container1), len(container2)))
        for i, object1 in enumerate(container1):
            for j, object2 in enumerate(container2):
                matrix[i, j] = self.measure(object1, object2)
        return matrix

        Returns the matrix of measure values between two sets of objects
        Sometimes can be implemented in a faster way than making couplewise measurements
        
Returns the matrix of measure values between two sets of objects
Sometimes can be implemented in a faster way than making couplewise measurements
Returns the matrix of measure values between two sets of objects Sometimes can be implemented in a faster way than making couplewise measurements
def matrix(self, container1, container2):
        matrix = np.zeros((len(container1), len(container2)))
        for i, object1 in enumerate(container1):
            for j, object2 in enumerate(container2):
                matrix[i, j] = self.measure(object1, object2)
        return matrix
def matrix ( self , container1 , container2 ) : matrix = np . zeros ( ( len ( container1 ) , len ( container2 ) ) ) for i , object1 in enumerate ( container1 ) : for j , object2 in enumerate ( container2 ) : matrix [ i , j ] = self . measure ( object1 , object2 ) return matrix
Returns the matrix of measure values between two sets of objects
Sometimes can be implemented in a faster way than making couplewise measurements
Returns the matrix of measure values between two sets of objects Sometimes can be implemented in a faster way than making couplewise measurements
"""
        Returns the matrix of measure values between two sets of objects
        Sometimes can be implemented in a faster way than making couplewise measurements
        """
self
container1
container2