lerot.retrieval_system¶
-
class
lerot.retrieval_system.
ListwiseLearningSystem
(feature_count, arg_str)[source]¶ Bases:
lerot.retrieval_system.AbstractLearningSystem.AbstractLearningSystem
A retrieval system that learns online from listwise comparisons. The system keeps track of all necessary state variables (current query, weights, etc.) so that comparison and learning classes can be stateless (implement only static / class methods).
-
class
lerot.retrieval_system.
PrudentListwiseLearningSystem
(feature_count, arg_str)[source]¶ Bases:
lerot.retrieval_system.AbstractLearningSystem.AbstractLearningSystem
A retrieval system that learns online from listwise comparisons. The system keeps track of all necessary state variables (current query, weights, etc.) so that comparison and learning classes can be stateless (implement only static / class methods).
-
class
lerot.retrieval_system.
ListwiseLearningSystemWithCandidateSelection
(feature_count, arg_str)[source]¶ Bases:
lerot.retrieval_system.ListwiseLearningSystem.ListwiseLearningSystem
A retrieval system that learns online from listwise comparisons, and pre-selects exploratory rankers using historic data.
-
select_candidate_repeated
(candidates)[source]¶ Selects a ranker in randomized matches. Ranker pairs are sampled uniformly and compared over a number of historical samples. The outcomes observed over these samples are averaged (with / without importance sampling). The worse-performing ranker is removed from the pool. If no preference is found, the ranker to be removed is selected randomly. The final ranker in the pool is returned. This selection method assumes transitivity.
-
select_candidate_simple
(candidates)[source]¶ Selects a ranker in randomized matches. For each historic data point two rankers are randomly selected from the pool and compared. If a ranker loses the comparison, it is removed from the pool. If there is more than one ranker left when the history is exhausted, a ranker is randomly selected from the remaining pool. This selection method assumes transitivity (a ranker that loses against one ranker is assumed to not be the best ranker).
-
-
class
lerot.retrieval_system.
PairwiseLearningSystem
(feature_count, arg_str)[source]¶ Bases:
lerot.retrieval_system.AbstractLearningSystem.AbstractLearningSystem
A retrieval system that learns online from pairwise comparisons. The system keeps track of all necessary state variables (current query, weights, etc.).
-
sample_unit_sphere
(n)[source]¶ See http://mathoverflow.net/questions/24688/efficiently-sampling- points-uniformly-from-the-surface-of-an-n-sphere
-
-
class
lerot.retrieval_system.
SamplerSystem
(feature_count, arg_str, run_count='')[source]¶ Bases:
lerot.retrieval_system.AbstractLearningSystem.AbstractLearningSystem
-
class
lerot.retrieval_system.
PerturbationLearningSystem
(feature_count, arg_str)[source]¶ Bases:
lerot.retrieval_system.AbstractLearningSystem.AbstractLearningSystem
A retrieval system that learns online from pairwise comparisons. The system keeps track of all necessary state variables (current query, weights, etc.) so that comparison and learning classes can be stateless (implement only static / class methods).