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=None, distance_id: str = 'hamming') ndarray [source]#
Computes distances between the votes or candidates.
- get_reverse_approvals() list[set] [source]#
Returns the reverse approvals. Additionally, if they are not computed, it computes them.
- Returns:
The reverse approvals.
- Return type:
list[set]
- prepare_instance(is_exported=False, is_aggregated=True) None [source]#
Prepares all the instances within the experiment.
- Parameters:
is_exported (bool)
is_aggregated (bool)
- Return type:
None