Query Decider (Core)

Query Decider (Core)#

alts.core.query.query_decider
class QueryDecider[source]#

Bases: ExperimentModule, QueryConstrained

Description
This module decides which best-scoring queries are worth the resources needed to obtain their results.
Outside the first learning iteration of the model you can expect the QueryDecider to receive a non-empty list of query candidates.
abstract decide(self, queries, scores)[source]#
Description
Returns its favorite query/queries out of a list of candidates with associated scores from 0 to 1.
Is not implemented here.
Parameters:
  • query_candidates (Iterable over NDArrays) – A list of queries to choose from

  • scores – A list of scores associated to the queries in query_candidates

Returns:

Whether it wants to decide, Favorite query/queries

Return type:

boolean, Iterable over NDArrays

Raises:

NotImplementedError