(selected_instance, oracles, names=None)
return majority_vote_result[0], majority_vote_result[1], np.sum(cost)
Get the majority vote results of the selected instance.

    Parameters
    ----------
    selected_instance: int
        The indexes of selected samples. Should be a member of unlabeled set.

    oracles: {list, alipy.oracle.Oracles}
        An alipy.oracle.Oracle object that contains all the
        available oracles or a list of oracles.
        Each oracle should be a alipy.oracle.Oracle object.

    names: list, optional (default=None)
        A list of str which contains the names of oracles to query from.
        If not provided, it will query from all oracles.
        Each name should in oracles.names().

    Returns
    -------
    vote_count: int
        The number of votes.

    vote_result: object
        The label of the selected_instance, produced by majority voting
        of the selected oracles.

    query_costs: int
        The total cost of query.
Get the majority vote results of the selected instance.
Get the majority vote results of the selected instance .
def get_majority_vote(selected_instance, oracles, names=None):
    """Get the majority vote results of the selected instance.

    Parameters
    ----------
    selected_instance: int
        The indexes of selected samples. Should be a member of unlabeled set.

    oracles: {list, alipy.oracle.Oracles}
        An alipy.oracle.Oracle object that contains all the
        available oracles or a list of oracles.
        Each oracle should be a alipy.oracle.Oracle object.

    names: list, optional (default=None)
        A list of str which contains the names of oracles to query from.
        If not provided, it will query from all oracles.
        Each name should in oracles.names().

    Returns
    -------
    vote_count: int
        The number of votes.

    vote_result: object
        The label of the selected_instance, produced by majority voting
        of the selected oracles.

    query_costs: int
        The total cost of query.
    """
    labeling_results, cost = get_query_results(selected_instance, oracles, names)
    majority_vote_result = majority_vote(labeling_results)
    return majority_vote_result[0], majority_vote_result[1], np.sum(cost)
def get_majority_vote ( selected_instance , oracles , names = None ) : labeling_results , cost = get_query_results ( selected_instance , oracles , names ) majority_vote_result = majority_vote ( labeling_results ) return majority_vote_result [ 0 ] , majority_vote_result [ 1 ] , np . sum ( cost )