Query Selector (Core)#
- class ProcessQuerySelector(query_optimizer, query_decider)[source]#
Bases:
QuerySelector
,ProcessDataSubscriber
DescriptionHas additional access to a process for decision making.- Parameters:
query_optimizer (QueryOptimizer) – Chooses the most informative queries to be asked next
query_decider (QueryDecider) – Decided if the chosen queries are informative enough to be asked
- process_update(self, subscription) None [source]#
- DescriptionTries to update the given
subscription
.- Parameters:
subscription (Subscribable) – The subscription to be updated
- class QuerySelector(query_optimizer, query_decider)[source]#
Bases:
ExperimentModule
,QueryConstrained
DescriptionThe QuerySelector chooses which queries are going to be asked results for next.It does so with the help of the QueryOptimizer and the QueryDecider.- Parameters:
query_optimizer (QueryOptimizer) – Chooses the most informative queries to be asked next
query_decider (QueryDecider) – Decided if the chosen queries are informative enough to be asked
- decide(self) None [source]#
- Description1. Chooses the best queries with the optimizer2. Decides if chosen queries are worth the effort3. If they are worth it, forwards the chosen queries to the oracle
- post_init(self) None [source]#
- DescriptionInitializes
query_optimizer
andquery_Decider
with its experiment modules.
- query_decider: QueryDecider = NOTSET#
- query_optimizer: QueryOptimizer = NOTSET#
- class ResultQuerySelector(query_optimizer, query_decider)[source]#
Bases:
QuerySelector
,ResultDataSubscriber
DescriptionHas additional access to a result data pool foor decision making.- Parameters:
query_optimizer (QueryOptimizer) – Chooses the most informative queries to be asked next
query_decider (QueryDecider) – Decided if the chosen queries are informative enough to be asked
- result_update(self, subscription) None [source]#
- DescriptionTries to update the given
subscription
.- Parameters:
subscription (Subscribable) – The subscription to be updated
- class StreamQuerySelector(query_optimizer, query_decider)[source]#
Bases:
QuerySelector
,StreamDataSubscriber
DescriptionHas additional access to a stream for decision making.- Parameters:
query_optimizer (QueryOptimizer) – Chooses the most informative queries to be asked next
query_decider (QueryDecider) – Decided if the chosen queries are informative enough to be asked
- stream_update(self, subscription) None [source]#
- DescriptionTries to update the given
subscription
.- Parameters:
subscription (Subscribable) – The subscription to be updated