kemeny_score_computation¶
- exception corankco.kemeny_score_computation.InvalidRankingsForComputingDistance¶
- class corankco.kemeny_score_computation.KemenyComputingFactory(sc: ScoringScheme)¶
Class to compute Kemeny scores given a ScoringScheme, according to the framework defined in P.Andrieu, S.Cohen-Boulakia, M.Couceiro, A.Denise, A.Pierrot. A Unifying Rank Aggregation Model to Suitably and Efficiently Aggregate Any Kind of Rankings. https://dx.doi.org/10.2139/ssrn.4353494 The Kemeny score is generalized within a framework to handle incomplete rankings with ties
- get_kemeny_score(ranking: Ranking, dataset: Dataset) float ¶
Note that a Consensus object can be defined by several consensus rankings. Only the first one will be considered to compute the score. All consensus rankings of a Consensus object should be equivalent in quality
- property scoring_scheme¶
- Returns:
the scoring scheme used for the computation of kemeny scores
- Return type: