ApprovalElection#
- class ApprovalElection(experiment_id=None, election_id=None, culture_id=None, num_candidates=None, fast_import=False, params=None, **kwargs)[source]#
Approval Election class.
- compute_distances(object_type: str | None = None, distance_id: str = 'hamming') ndarray[source]#
Computes distances between the votes or candidates.
- compute_reverse_approvals() None[source]#
Computes reverse approvals: for each candidate, the set of voters who approve them.
- get_reverse_approvals() List[Set[int]][source]#
Returns the reverse approvals, computing them if necessary.
- prepare_instance(is_exported: bool = False, is_aggregated: bool = True) None[source]#
Prepares all the instances within the experiment.