Query Optimizer (Core)#
alts.core.query.query_optimizer
- class QueryOptimizer(selection_criteria)[source]#
Bases:
ExperimentModule
,QueryConstrained
DescriptionThe QueryOptimizer tries to find the most worthy queries to evaluate next.The worthiness of a query symbolizes the information content of its result.Wothiness is measured by a score given byselection_criteria
. So QueryOptimizer tries to maximize said score.- Parameters:
selection_criteria – Tells the QueryOptimizer the scores of queries
- post_init(self) None [source]#
- DescriptionInitializes
selection_criteria
with its experiment modules.
- select(self, num_queries) queries, scores [source]#
- DescriptionTries to find the queries with the highest scores and returns them.
- selection_criteria: SelectionCriteria = NOTSET#