(self, round, instance_flag=False)
Get knowledge repository object.

        Parameters
        ----------
        round: int
            The number of fold. 0 <= round < split_count

        instance_flag: bool, optional (default=False)
            Whether the repository object contains the examples.
            Note that, if this flag is True, the instances must
            be provided when updating the query information.

        Returns
        -------
        repository: BaseRepository
            knowledge repository object initialized with the labeled set.
Get knowledge repository object.
Get knowledge repository object .
def get_repository(self, round, instance_flag=False):
        """Get knowledge repository object.

        Parameters
        ----------
        round: int
            The number of fold. 0 <= round < split_count

        instance_flag: bool, optional (default=False)
            Whether the repository object contains the examples.
            Note that, if this flag is True, the instances must
            be provided when updating the query information.

        Returns
        -------
        repository: BaseRepository
            knowledge repository object initialized with the labeled set.

        """
        assert (0 <= round < self.split_count)
        train_id, test_id, Lcollection, Ucollection = self.get_split(round)
        if self.query_type == 'AllLabels':
            return MatrixRepository(labels=self._y[Lcollection.index],
                                    examples=self._X[Lcollection.index, :] if instance_flag else None,
                                    indexes=Lcollection.index)
        else:
            return ElementRepository(labels=self._y[Lcollection.index],
                                     examples=self._X[Lcollection.index, :] if instance_flag else None,
                                     indexes=Lcollection.index)
def get_repository ( self , round , instance_flag = False ) : assert ( 0 <= round < self . split_count ) train_id , test_id , Lcollection , Ucollection = self . get_split ( round ) if self . query_type == 'AllLabels' : return MatrixRepository ( labels = self . _y [ Lcollection . index ] , examples = self . _X [ Lcollection . index , : ] if instance_flag else None , indexes = Lcollection . index ) else : return ElementRepository ( labels = self . _y [ Lcollection . index ] , examples = self . _X [ Lcollection . index , : ] if instance_flag else None , indexes = Lcollection . index )