Simple Approval#

abstract(election) dict[source]#

Computes the abstract of a given election.

Parameters:

election (ApprovalElection)

Returns:

‘value’: abstract

Return type:

dict

justified_ratio(election, feature_params) dict[source]#

Computes the justified ration of a given elections

Parameters:
Returns:

‘value’: justified ratio

Return type:

dict

max_approval_score(election)[source]#

Computes the largest approval score of a given election.

Parameters:

election (ApprovalElection)

Returns:

‘value’: max approval score

Return type:

dict