Skip to main content

omega_cognitive_kernel/task/
mod.rs

1//! Minimal task environment: nonstationary 2-armed bandit and L2/closed-loop benchmarks.
2//! External reward is written back into strategy memory so the task loop is closed.
3
4mod bandit;
5mod benchmarks;
6mod closed_loop_bench;
7mod stats;
8mod types;
9
10pub use bandit::{run_bandit_task, run_bandit_task_seeded};
11pub use benchmarks::{
12    run_l1_l2_factorial_benchmark, run_l2_benchmark, run_l2_benchmark_scenario,
13    run_l2_benchmark_scenario_with_gate, run_l2_gain_matrix,
14};
15pub use closed_loop_bench::{
16    run_closed_loop_comparison_benchmark, ClosedLoopComparisonReport, ClosedLoopComparisonRow,
17};
18pub use types::{
19    BanditReport, CorrelationDiagnostic, FactorialArm, FactorialBenchmarkReport, FactorialEffect,
20    FactorialRun, L2BenchmarkAggregate, L2BenchmarkReport, L2DiagnosticSample,
21    L2ExperimentSettings, L2ExpertMetrics, L2GainAssessment, L2GainMatrixReport,
22    L2GainScenarioAssessment, L2GainSeedSet, L2PairedRun, L2PipelineDiagnostics,
23    L2SignalDiagnostics, PairedMeanDifference, L2_GAIN_DEFAULT_EPISODES, L2_GAIN_DEFAULT_RUNS,
24    L2_GAIN_DEFAULT_STEPS, L2_GAIN_DISCOVERY_SEED, L2_GAIN_SCENARIOS, L2_GAIN_VALIDATION_SEED,
25};
26
27#[cfg(test)]
28use crate::api::Kernel;
29#[cfg(test)]
30use alloc::collections::BTreeMap;
31#[cfg(test)]
32#[allow(unused_imports)]
33use bandit::{arm_for_action, run_bandit_task_seeded_scenario, Rng};
34#[cfg(test)]
35#[allow(unused_imports)]
36use stats::{
37    aggregate, assess_gain_scenario, assess_l2_gain_matrix, bootstrap_difference, correlation,
38    factorial_differences, factorial_effects, gain_conclusion, mean, paired_difference, pearson,
39    ranks, signal_diagnostics,
40};
41
42#[cfg(test)]
43#[path = "../task_tests.rs"]
44mod tests;