(self, index_for_querying, oracle_name=None)
return result
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.

        oracle_name: str, optional (default=None)
            query from which oracle. If not specified, it will query one of the
            oracles randomly.

        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(self, index_for_querying, oracle_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.

        oracle_name: str, optional (default=None)
            query from which oracle. If not specified, it will query one of the
            oracles randomly.

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

        costs: list
            corresponding costs produced by query.
        """
        if oracle_name is None:
            oracle_name = random.sample(self._oracle_dict.keys(), 1)[0]
        result = self._oracle_dict[oracle_name].query_by_index(index_for_querying)

        self._update_query_history([oracle_name], [result], index_for_querying)
        self.cost_inall += np.sum(np.asarray(result[1]).flatten())
        return result
def query_from ( self , index_for_querying , oracle_name = None ) : if oracle_name is None : oracle_name = random . sample ( self . _oracle_dict . keys ( ) , 1 ) [ 0 ] result = self . _oracle_dict [ oracle_name ] . query_by_index ( index_for_querying ) self . _update_query_history ( [ oracle_name ] , [ result ] , index_for_querying ) self . cost_inall += np . sum ( np . asarray ( result [ 1 ] ) . flatten ( ) ) return result