(self, array, label_mat_shape=None, order='F')
Return a MultiLabelIndexCollection object initialized with array.
        The label_mat_shape is the shape of the provided label matrix by default.

        Parameters
        ----------
        array: {list, np.ndarray}
            An 1d array or a list of tuples of indexes.

        label_mat_shape: tuple (optional, default=None)
            The shape of label matrix. The 1st element is the number of instances,
            and the 2nd element is the total classes. If it is not specified, it will
            use the shape of label matrix y.

        order : {'C', 'F'}, optional
            Determines whether the indices should be viewed as indexing in
            row-major (C-style) or column-major (Matlab-style) order.
            Only useful when an 1d array is given.
Return a MultiLabelIndexCollection object initialized with array.
        The label_mat_shape is the shape of the provided label matrix by default.
Return a MultiLabelIndexCollection object initialized with array . The label_mat_shape is the shape of the provided label matrix by default .
def MultiLabelIndexCollection(self, array, label_mat_shape=None, order='F'):
        """
        Return a MultiLabelIndexCollection object initialized with array.
        The label_mat_shape is the shape of the provided label matrix by default.

        Parameters
        ----------
        array: {list, np.ndarray}
            An 1d array or a list of tuples of indexes.

        label_mat_shape: tuple (optional, default=None)
            The shape of label matrix. The 1st element is the number of instances,
            and the 2nd element is the total classes. If it is not specified, it will
            use the shape of label matrix y.

        order : {'C', 'F'}, optional
            Determines whether the indices should be viewed as indexing in
            row-major (C-style) or column-major (Matlab-style) order.
            Only useful when an 1d array is given.

        """
        if isinstance(array[0], tuple):
            return MultiLabelIndexCollection(data=array, label_size=self._y.shape[1] if label_mat_shape is None else
            label_mat_shape[1])
        else:
            return MultiLabelIndexCollection.construct_by_1d_array(data=array,
                                                                   label_mat_shape=self._y.shape if label_mat_shape is None else label_mat_shape,
                                                                   order=order)
def MultiLabelIndexCollection ( self , array , label_mat_shape = None , order = 'F' ) : if isinstance ( array [ 0 ] , tuple ) : return MultiLabelIndexCollection ( data = array , label_size = self . _y . shape [ 1 ] if label_mat_shape is None else label_mat_shape [ 1 ] ) else : return MultiLabelIndexCollection . construct_by_1d_array ( data = array , label_mat_shape = self . _y . shape if label_mat_shape is None else label_mat_shape , order = order )