category
score_ranker_model_common
Shared predicates for score-ranker term construction, validation, ranking, export, and pretty-printing.
logtalk_load(ranking_protocols(loader))staticPublic predicates
(no local declarations; see entity ancestors if any)
Protected predicates
score_ranker_model/1
Hook predicate that importing rankers must define to identify the learned score-ranker model.
staticscore_ranker_model(Model)score_ranker_model(-atom) - onescore_ranker_label/1
Hook predicate that importing rankers must define to provide a human-readable label used by pretty-printing helpers.
staticscore_ranker_label(Label)score_ranker_label(-atom) - onescore_ranker_term/4
Hook predicate that importing rankers must define to map between the ranker term representation and its items, scores, and diagnostics payloads.
staticscore_ranker_term(Items,Scores,Diagnostics,Ranker)score_ranker_term(?list,?list,?list(compound),?compound) - zero_or_onevalid_score/1
Hook predicate that importing rankers must define to validate individual learned score values.
staticvalid_score(Score)valid_score(+number) - zero_or_onebuild_score_ranker/5
Builds a self-describing score-ranker term from ordered items, score pairs, effective options, and dataset summary metadata.
staticbuild_score_ranker(Items,Scores,Options,DatasetSummary,Ranker)build_score_ranker(+list,+list(pair),+list(compound),+list(compound),-compound) - onescore_ranker_data/4
Validates and destructures a score-ranker term into its items, score pairs, and diagnostics payloads.
staticscore_ranker_data(Ranker,Items,Scores,Diagnostics)score_ranker_data(+compound,-list,-list(pair),-list(compound)) - onevalid_score_ranker_diagnostics/3
Hook predicate that importing rankers can define to validate diagnostics beyond the common model, options, and dataset summary metadata.
staticvalid_score_ranker_diagnostics(Items,Scores,Diagnostics)valid_score_ranker_diagnostics(+list,+list(pair),+list(compound)) - zero_or_oneinitialize_scores/2
Initializes a score dictionary with zero scores for the given ordered items.
staticinitialize_scores(Items,Scores)initialize_scores(+list,-compound) - oneaccumulate_item_scores/3
Accumulates item score deltas into a score dictionary.
staticaccumulate_item_scores(ItemDeltas,Scores,UpdatedScores)accumulate_item_scores(+list(pair),+compound,-compound) - oneupdate_score/4
Updates the score of a single item in a score dictionary by adding the given delta.
staticupdate_score(Scores,Item,Delta,UpdatedScores)update_score(+compound,+term,+number,-compound) - oneordered_scores/3
Materializes ordered Item-Score pairs from a score dictionary using the given item order.
staticordered_scores(Items,ScoresDictionary,Scores)ordered_scores(+list,+compound,-list(pair)) - onePrivate predicates
(no local declarations; see entity ancestors if any)
Operators
(none)