Skip to main content

graded_under

Function graded_under 

Source
pub fn graded_under<'a>(
    policy: Policy,
    applied: &[(&'a Challenge, u8)],
    ctx: &Ctx<'_>,
) -> Routed<'a>
Expand description

A graded check’s decision under policy (the hook passes the policy in force, policy, through hook.rs decide): replaces 0.5.0’s attention.rs graded. Fixed and Cap decide by the fixed rule (conscience.rs graded_without with ctx.had, Cap with its cap), whose propensities are its choice (attention.rs fixed_p); Attention on a check with a 3 by the learned cut on the outcomes beside ctx.lessons, with the explore mixture’s propensities, and by the fixed rule otherwise; Learned on every check by select/policy.rs choose (the fixed rule at cold start or while the store is reverted), with its exact propensities (learned). Fixed and Learned draw placebos among the applies they deliver neither way (draw_placebo); the asked and free lists never depend on that draw, so the fixed rule’s decision is the same with or without it (P0).