with_probability#
- eclypse.policies.schedule.with_probability(probability, policy)[source]#
Run a policy according to a probability.
- Parameters:
probability (float) – Per-call probability of triggering the policy.
policy (UpdatePolicy) – Wrapped policy to call.
- Returns:
Policy that applies the wrapped policy after successful random draws.
- Return type: