(self, matrix)
Check if the given matrix is multi label
Check if the given matrix is multi label
Check if the given matrix is multi label
def _check_multi_label(self, matrix):
        """Check if the given matrix is multi label"""
        # ytype = type_of_target(matrix)
        # if 'multilabel' not in ytype:
        if len(np.shape(matrix)) != 2:
            raise ValueError("Please provide a multi-label matrix in y with the shape [n_samples, n_classes].")
def _check_multi_label ( self , matrix ) : # ytype = type_of_target(matrix) # if 'multilabel' not in ytype: if len ( np . shape ( matrix ) ) != 2 : raise ValueError ( "Please provide a multi-label matrix in y with the shape [n_samples, n_classes]." )