object

kemeny_young_ranker

Kemeny-Young pairwise preference ranker. Learns one deterministic consensus order from a dataset object implementing the pairwise_ranking_dataset_protocol protocol by maximizing the total agreeing pairwise preference weight over all linear orders and returns a self-describing ranker term with diagnostics that can be used for ranking and export.

Availability:
logtalk_load(kemeny_young_ranker(loader))
Author: Paulo Moura
Version: 1:0:0
Date: 2026-05-06
Compilation flags:
static, context_switching_calls
Remarks:
(none)

Public predicates

consensus_ranking/2

Returns the learned full-item consensus ranking selected by the Kemeny-Young optimization.

Compilation flags:
static
Template:
consensus_ranking(Ranker,ConsensusRanking)
Mode and number of proofs:
consensus_ranking(+compound,-list) - one

consensus_score/2

Returns the maximum total pairwise agreement score of the learned consensus ranking.

Compilation flags:
static
Template:
consensus_score(Ranker,ConsensusScore)
Mode and number of proofs:
consensus_score(+compound,-number) - one

Protected predicates

(no local declarations; see entity ancestors if any)

Private predicates

(no local declarations; see entity ancestors if any)

Operators

(none)