(self, index_for_querying, oracles_name=None)
return results
query index_for_querying from oracle_name.
        If oracle_name is not specified, it will query one of the oracles randomly.

        Parameters
        ----------
        index_for_querying: object
            index for querying.

        oracles_name: list, optional (default=None)
            query from which oracles. It should be a list of names.
            If not specified, it will query from all oracles.

        Returns
        -------
        sup_info: list
            supervised information of queried index.

        costs: list
            corresponding costs produced by query.
query index_for_querying from oracle_name.
        If oracle_name is not specified, it will query one of the oracles randomly.
query index_for_querying from oracle_name . If oracle_name is not specified it will query one of the oracles randomly .
def query_from_s(self, index_for_querying, oracles_name=None):
        """query index_for_querying from oracle_name.
        If oracle_name is not specified, it will query one of the oracles randomly.

        Parameters
        ----------
        index_for_querying: object
            index for querying.

        oracles_name: list, optional (default=None)
            query from which oracles. It should be a list of names.
            If not specified, it will query from all oracles.

        Returns
        -------
        sup_info: list
            supervised information of queried index.

        costs: list
            corresponding costs produced by query.
        """
        if oracles_name is None:
            oracles_name = list(self._oracle_dict.keys())
        results = []
        for name in oracles_name:
            results.append(self._oracle_dict[name].query_by_index(index_for_querying))

        self._update_query_history(oracles_name, results, index_for_querying)
        self.cost_inall += np.sum(np.array([result[1] for result in results]).flatten())
        return results
def query_from_s ( self , index_for_querying , oracles_name = None ) : if oracles_name is None : oracles_name = list ( self . _oracle_dict . keys ( ) ) results = [ ] for name in oracles_name : results . append ( self . _oracle_dict [ name ] . query_by_index ( index_for_querying ) ) self . _update_query_history ( oracles_name , results , index_for_querying ) self . cost_inall += np . sum ( np . array ( [ result [ 1 ] for result in results ] ) . flatten ( ) ) return results