Available on crate feature
std only.Expand description
Minimal task environment: nonstationary 2-armed bandit and L2/closed-loop benchmarks. External reward is written back into strategy memory so the task loop is closed.
Structs§
- Bandit
Report - Report of bandit.
- Closed
Loop Comparison Report - Report comparing no-adaptation, L1-only, and L1+L2 guarded closed loops.
- Closed
Loop Comparison Row - Per-arm metrics from the closed-loop multi-parameter comparison benchmark.
- Correlation
Diagnostic - Data structure representing correlation diagnostic.
- Factorial
Benchmark Report - Report of factorial benchmark.
- Factorial
Effect - Data structure representing factorial effect.
- Factorial
Run - Data structure representing factorial run.
- L2Benchmark
Aggregate - Data structure representing L2 benchmark aggregate.
- L2Benchmark
Report - Report of L2 benchmark.
- L2Diagnostic
Sample - Data structure representing L2 diagnostic sample.
- L2Experiment
Settings - Data structure representing L2 experiment settings.
- L2Expert
Metrics - Data structure representing L2 expert metrics.
- L2Gain
Assessment - Data structure representing L2 gain assessment.
- L2Gain
Matrix Report - Report of L2 gain matrix.
- L2Gain
Scenario Assessment - Data structure representing L2 gain scenario assessment.
- L2Paired
Run - Data structure representing L2 paired run.
- L2Pipeline
Diagnostics - Data structure representing L2 pipeline diagnostics.
- L2Signal
Diagnostics - Data structure representing L2 signal diagnostics.
- Paired
Mean Difference - Data structure representing paired mean difference.
Enums§
- Factorial
Arm - Identifies a supported factorial arm.
- L2Gain
Seed Set - Identifies a supported L2 gain seed set.
Constants§
- L2_
GAIN_ DEFAULT_ EPISODES - Constant defining L2 gain default episodes.
- L2_
GAIN_ DEFAULT_ RUNS - Constant defining L2 gain default runs.
- L2_
GAIN_ DEFAULT_ STEPS - Constant defining L2 gain default steps.
- L2_
GAIN_ DISCOVERY_ SEED - Constant defining L2 gain discovery seed.
- L2_
GAIN_ SCENARIOS - Constant defining L2 gain scenarios.
- L2_
GAIN_ VALIDATION_ SEED - Constant defining L2 gain validation seed.
Functions§
- run_
bandit_ task - Runs run bandit task and returns its result.
- run_
bandit_ task_ seeded - Runs run bandit task seeded and returns its result.
- run_
closed_ loop_ comparison_ benchmark - Runs a true closed-loop multi-parameter comparison where directives feed back into the simulated service environment across steady, drift, and noisy phases.
- run_
l1_ l2_ factorial_ benchmark - Run a 2x2 factorial comparison of independent L1/L2 intervention gates. Arm order is L0, L1-only, L2-only, and L1+L2. Each position in a seeded environment consumes one random number, providing common random numbers across arms without changing the existing task environment.
- run_
l2_ benchmark - Compare identical seeded bandit runs with L2 interventions disabled/enabled. The benchmark is deterministic and reports deltas rather than treating a single successful run as evidence of improvement.
- run_
l2_ benchmark_ scenario - Run the paired L2 benchmark under a named deterministic environment.
- run_
l2_ benchmark_ scenario_ with_ gate - Runs run L2 benchmark scenario with gate and returns its result.
- run_
l2_ gain_ matrix - Execute the preregistered discovery/validation L2-only gain matrix. The factorial reports retain L1 and interaction diagnostics, but only L2-L0 participates in the gain verdict. No controller setting is tuned here.