Skip to main content

BanditReport

Struct BanditReport 

Source
pub struct BanditReport {
Show 54 fields pub scenario: String, pub episodes: u32, pub steps_per_episode: u32, pub mean_reward: f64, pub mean_adjusted_reward: f64, pub best_arm_rate: f64, pub final_damping: f64, pub final_explore_bonus: f64, pub final_risk_tolerance: f64, pub error_decreased: bool, pub patches_accepted: u64, pub seed: u64, pub strategy_count: usize, pub idle_strategy_count: usize, pub mean_strategy_weight: f64, pub mean_idle_steps: f64, pub max_idle_steps: u32, pub mean_idle_weight: f64, pub mean_active_weight: f64, pub initial_avg_error: f64, pub final_avg_error: f64, pub fixed_point_enters: usize, pub fixed_point_exits: usize, pub max_fixed_point_dwell: u64, pub l2_nudges: usize, pub l2_proposals: usize, pub l2_commits: usize, pub action_switches: usize, pub post_commit_action_changes: usize, pub post_commit_arm_changes: usize, pub distinct_actions: usize, pub mean_l2_consequence_score: f64, pub final_score_breakdown: BTreeMap<String, f64>, pub final_alignment_score: f64, pub recovery_steps: Option<u32>, pub l1_rollback_count: u64, pub l1_blocked_by_l2_count: u64, pub l2_rollback_count: u64, pub dayan_converged: bool, pub final_dayan_residual: f64, pub dwell_hold_count: u64, pub margin_hold_count: u64, pub active_steps: u64, pub committed_policies_applied: u64, pub expert_metrics: [L2ExpertMetrics; 4], pub lyapunov_vetoes: u64, pub meta_cache_hits: u64, pub recovery_latencies: Vec<u32>, pub warm_recovery_latencies: Vec<u32>, pub mean_residual_improvement: f64, pub pipeline: Option<L2PipelineDiagnostics>, pub diagnostics: Option<Vec<L2DiagnosticSample>>, pub signals: Option<L2SignalDiagnostics>, pub experiment: Option<L2ExperimentSettings>,
}
Available on crate feature std only.
Expand description

Report of bandit.

Fields§

§scenario: String

Scenario for this value.

§episodes: u32

Episodes for this value.

§steps_per_episode: u32

Steps per episode for this value.

§mean_reward: f64

Mean reward for this value.

§mean_adjusted_reward: f64

Mean external reward after UCB’s error, rollback, and switching costs. This is a learning diagnostic, not a substitute for external reward.

§best_arm_rate: f64

Best arm rate for this value.

§final_damping: f64

Prediction-error damping factor at the end of the run.

§final_explore_bonus: f64

Final explore bonus for this value.

§final_risk_tolerance: f64

Final risk tolerance for this value.

§error_decreased: bool

Whether average prediction error fell during the run.

§patches_accepted: u64

Number of patches accepted during the run.

§seed: u64

Seed for this value.

§strategy_count: usize

Number of stored strategies.

§idle_strategy_count: usize

Number of idle strategy.

§mean_strategy_weight: f64

Mean strategy weight for this value.

§mean_idle_steps: f64

Number of mean idle.

§max_idle_steps: u32

Maximum idle steps.

§mean_idle_weight: f64

Mean idle weight for this value.

§mean_active_weight: f64

Mean active weight for this value.

§initial_avg_error: f64

Initial average error for this value.

§final_avg_error: f64

Final average error for this value.

§fixed_point_enters: usize

Fixed point enters for this value.

§fixed_point_exits: usize

Fixed point exits for this value.

§max_fixed_point_dwell: u64

Maximum fixed point dwell.

§l2_nudges: usize

L2 nudges for this value.

§l2_proposals: usize

L2 proposals for this value.

§l2_commits: usize

L2 commits for this value.

§action_switches: usize

Action switches for this value.

§post_commit_action_changes: usize

Post commit action changes for this value.

§post_commit_arm_changes: usize

Post commit arm changes for this value.

§distinct_actions: usize

Distinct actions for this value.

§mean_l2_consequence_score: f64

Mean l2 consequence score for this value.

§final_score_breakdown: BTreeMap<String, f64>

Mapping of final score breakdown.

§final_alignment_score: f64

Final alignment score for this value.

§recovery_steps: Option<u32>

Number of recovery.

§l1_rollback_count: u64

Number of L1 rollback.

§l1_blocked_by_l2_count: u64

Number of L1 blocked by L2.

§l2_rollback_count: u64

Number of L2 rollback.

§dayan_converged: bool

Whether dayan converged is enabled or active.

§final_dayan_residual: f64

Final dayan residual for this value.

§dwell_hold_count: u64

Number of dwell hold.

§margin_hold_count: u64

Number of margin hold.

§active_steps: u64

Number of active.

§committed_policies_applied: u64

Committed policies applied for this value.

§expert_metrics: [L2ExpertMetrics; 4]

Expert metrics for this value.

§lyapunov_vetoes: u64

Lyapunov vetoes for this value.

§meta_cache_hits: u64

Meta cache hits for this value.

§recovery_latencies: Vec<u32>

Collection of recovery latencies.

§warm_recovery_latencies: Vec<u32>

Collection of warm recovery latencies.

§mean_residual_improvement: f64

Mean residual improvement for this value.

§pipeline: Option<L2PipelineDiagnostics>

Optional pipeline.

§diagnostics: Option<Vec<L2DiagnosticSample>>

Optional diagnostics.

§signals: Option<L2SignalDiagnostics>

Optional signals.

§experiment: Option<L2ExperimentSettings>

Optional experiment.

Trait Implementations§

Source§

impl Clone for BanditReport

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BanditReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for BanditReport

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Forget for BanditReport

§

impl Freeze for BanditReport

§

impl Move for BanditReport

§

impl RefUnwindSafe for BanditReport

§

impl Send for BanditReport
where RawVecInner: Send, NodeRef<Owned, String, f64, LeafOrInternal>: Send, BoxRaw<(String, f64)>: Send,

§

impl Sync for BanditReport
where RawVecInner: Sync, NodeRef<Owned, String, f64, LeafOrInternal>: Sync, BoxRaw<(String, f64)>: Sync,

§

impl Unpin for BanditReport
where *const u8 is !null: Unpin, *const LeafNode<String, f64> is !null: Unpin, Box<(String, f64)>: Unpin,

§

impl UnsafeUnpin for BanditReport

§

impl UnwindSafe for BanditReport
where RawVecInner: UnwindSafe, BTreeMap<String, f64>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more