(self, indexes)
Retrieve by indexes.

        Parameters
        ----------
        indexes: {list, numpy.ndarray, BaseCollection}
            The indexes used for retrieving.
            Note that, if you want to retrieve by 2 or more indexes, a list of int is expected.

        Returns
        -------
        X: array-like
            The retrieved instances.

        y: array-like
            The retrieved labels.
Retrieve by indexes.
Retrieve by indexes .
def retrieve_by_indexes(self, indexes):
        """Retrieve by indexes.

        Parameters
        ----------
        indexes: {list, numpy.ndarray, BaseCollection}
            The indexes used for retrieving.
            Note that, if you want to retrieve by 2 or more indexes, a list of int is expected.

        Returns
        -------
        X: array-like
            The retrieved instances.

        y: array-like
            The retrieved labels.
        """
        if not isinstance(indexes, (list, np.ndarray, BaseCollection)):
            ind = np.argwhere(self._indexes == indexes)  # will return empty array if not found.
            if not ind:
                warnings.warn("Index %s for retrieving is not in the repository, skip." % str(indexes),
                              category=ValidityWarning)
            return self._X[ind,] if self._instance_flag else None, self._y[ind,]
        else:
            ind = [np.argwhere(self._indexes == indexes[i]).flatten()[0] for i in range(len(indexes))]
            return self._X[ind,] if self._instance_flag else None, self._y[ind,]
def retrieve_by_indexes ( self , indexes ) : if not isinstance ( indexes , ( list , np . ndarray , BaseCollection ) ) : ind = np . argwhere ( self . _indexes == indexes ) # will return empty array if not found. if not ind : warnings . warn ( "Index %s for retrieving is not in the repository, skip." % str ( indexes ) , category = ValidityWarning ) return self . _X [ ind , ] if self . _instance_flag else None , self . _y [ ind , ] else : ind = [ np . argwhere ( self . _indexes == indexes [ i ] ) . flatten ( ) [ 0 ] for i in range ( len ( indexes ) ) ] return self . _X [ ind , ] if self . _instance_flag else None , self . _y [ ind , ]