pairwise_ranking_dataset_protocol — Logtalk 3.100.1

protocol

# `pairwise_ranking_dataset_protocol`

Protocol for pairwise ranking datasets.

Availability:
`logtalk_load(ranking_protocols(loader))`
Author: Paulo Moura
Version: 1:0:0
Date: 2026-05-05
Compilation flags:
`static`
Dependencies:
(none)
Remarks:
(none)
Inherited public predicates:
(none)

## Public predicates

### `item/1`

Enumerates by backtracking the items that can be ranked.

Compilation flags:
`static`
Template:
`item(Item)`
Mode and number of proofs:
`item(-atom)` - `zero_or_more`

### `preference/3`

Enumerates by backtracking weighted pairwise preferences where `Winner` is preferred over `Loser` `Weight` times.

Compilation flags:
`static`
Template:
`preference(Winner,Loser,Weight)`
Mode and number of proofs:
`preference(-atom,-atom,-number)` - `zero_or_more`

## Protected predicates

(none)

## Private predicates

(none)

## Operators

(none)