protocol
ranker_protocol
Protocol for machine learning rankers.
logtalk_load(ranking_protocols(loader))staticPublic predicates
learn/3
Learns a ranker from the given dataset object using the specified options.
staticlearn(Dataset,Ranker,Options)learn(+object_identifier,-compound,+list(compound)) - onelearn/2
Learns a ranker from the given dataset object using default options.
staticlearn(Dataset,Ranker)learn(+object_identifier,-compound) - onerank/3
Ranks a list of candidate items using the learned ranker and returns the candidates ordered from most preferred to least preferred.
staticrank(Ranker,Candidates,Ranking)rank(+compound,+list,-list) - onescores/2
Returns the learned item-score pairs on the ranker native numeric scale. Depending on the ranker, these values may also be interpreted more specifically as strengths or ratings.
staticscores(Ranker,Scores)scores(+compound,-list(pair)) - onediagnostics/2
Returns diagnostics and metadata associated with a learned ranker in a representation-independent way.
staticdiagnostics(Ranker,Diagnostics)diagnostics(+compound,-list(compound)) - onediagnostic/2
Tests or enumerates individual diagnostics metadata terms for a learned ranker.
staticdiagnostic(Ranker,Diagnostic)diagnostic(+compound,?compound) - zero_or_moreranker_options/2
Returns the effective training options recorded in a learned ranker diagnostics list.
staticranker_options(Ranker,Options)ranker_options(+compound,-list(compound)) - zero_or_onecheck_ranker/1
Checks that the argument is a structurally valid learned ranker term for the receiving ranker implementation, throwing an exception on invalid input when applicable.
staticcheck_ranker(Ranker)check_ranker(@compound) - one_or_errorRanker is a variable:instantiation_errorRanker is neither a variable nor a valid ranker:domain_error(ranker,Ranker)valid_ranker/1
True when check_ranker/1 succeeds for the argument without throwing an exception.
staticvalid_ranker(Ranker)valid_ranker(@compound) - zero_or_oneexport_to_clauses/4
Converts a ranker into a list of predicate clauses. Functor is the functor for the generated predicate clauses. When exporting a serialized ranker term, a noun such as ranker or model is usually clearer than a verb or result label.
staticexport_to_clauses(Dataset,Ranker,Functor,Clauses)export_to_clauses(+object_identifier,+compound,+callable,-list(clause)) - oneexport_to_file/4
Exports a ranker to a file. Functor is the functor for the generated predicate clauses. When exporting a serialized ranker term, a noun such as ranker or model is usually clearer than a verb or result label.
staticexport_to_file(Dataset,Ranker,Functor,File)export_to_file(+object_identifier,+compound,+callable,+atom) - oneprint_ranker/1
Prints a ranker to the current output stream in a human-readable format.
staticprint_ranker(Ranker)print_ranker(+compound) - oneProtected predicates
(none)
Private predicates
(none)
Operators
(none)