def get_majority_vote(selected_instance, oracles, names=None):
    'Get the majority vote results of the selected instance.\n\n    Parameters\n    ----------\n    selected_instance: int\n        The indexes of selected samples. Should be a member of unlabeled set.\n\n    oracles: {list, alipy.oracle.Oracles}\n        An alipy.oracle.Oracle object that contains all the\n        available oracles or a list of oracles.\n        Each oracle should be a alipy.oracle.Oracle object.\n\n    names: list, optional (default=None)\n        A list of str which contains the names of oracles to query from.\n        If not provided, it will query from all oracles.\n        Each name should in oracles.names().\n\n    Returns\n    -------\n    vote_count: int\n        The number of votes.\n\n    vote_result: object\n        The label of the selected_instance, produced by majority voting\n        of the selected oracles.\n\n    query_costs: int\n        The total cost of query.\n    '
    (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))
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.
def get_majority_vote(selected_instance, oracles, names=None):
    'Get the majority vote results of the selected instance.\n\n    Parameters\n    ----------\n    selected_instance: int\n        The indexes of selected samples. Should be a member of unlabeled set.\n\n    oracles: {list, alipy.oracle.Oracles}\n        An alipy.oracle.Oracle object that contains all the\n        available oracles or a list of oracles.\n        Each oracle should be a alipy.oracle.Oracle object.\n\n    names: list, optional (default=None)\n        A list of str which contains the names of oracles to query from.\n        If not provided, it will query from all oracles.\n        Each name should in oracles.names().\n\n    Returns\n    -------\n    vote_count: int\n        The number of votes.\n\n    vote_result: object\n        The label of the selected_instance, produced by majority voting\n        of the selected oracles.\n\n    query_costs: int\n        The total cost of query.\n    '
    (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))