def __eq__(self, other):
        """Equality of two datasets in samples and their values."""
        if set(self.keys) != set(other.keys):
            print('differing sample ids.')
            return False
        elif dict(self.__classes) != dict(other.classes):
            print('differing classes for the sample ids.')
            return False
        elif id(self.__data) != id(other.data):
            for key in self.keys:
                if not np.all(self.data[key] == other.data[key]):
                    print('differing data for the sample ids.')
                    return False
            return True
        else:
            return True
def __eq__ ( self , other ) : if set ( self . keys ) != set ( other . keys ) : print ( 'differing sample ids.' ) return False elif dict ( self . __classes ) != dict ( other . classes ) : print ( 'differing classes for the sample ids.' ) return False elif id ( self . __data ) != id ( other . data ) : for key in self . keys : if not np . all ( self . data [ key ] == other . data [ key ] ) : print ( 'differing data for the sample ids.' ) return False return True else : return True
Equality of two datasets in samples and their values.