The watcher.decision_engine.goal.efficacy.base Module

An efficacy specfication is a contract that is associated to each Goal that defines the various efficacy indicators a strategy achieving the associated goal should provide within its solution. Indeed, each solution proposed by a strategy will be validated against this contract before calculating its global efficacy.

class watcher.decision_engine.goal.efficacy.base.EfficacySpecification[source]

Bases: object

get_global_efficacy_indicator(indicators_map)[source]

Compute the global efficacy for the goal it achieves

Parameters:indicators_map (IndicatorsMap instance) – dict-like object containing the efficacy indicators related to this spec
Raises:NotImplementedError
Returns:Indicator instance
get_indicators_specifications()[source]

List the specifications of the indicator for this efficacy spec

Returns:Tuple of indicator specifications
Return type:Tuple of IndicatorSpecification instances
get_indicators_specs_dicts()[source]
serialize_indicators_specs()[source]
validate_efficacy_indicators(indicators_map)[source]