Skip to main content

DelayedContextualDecision

Type Alias DelayedContextualDecision 

Source
pub type DelayedContextualDecision = PendingDecision<Vec<f64>, usize>;
Available on crate feature bandit only.
Expand description

LinUCB-oriented decision facts; the generic ledger remains algorithm-free.

Aliased Type§

pub struct DelayedContextualDecision {
    pub id: DecisionId,
    pub context: Vec<f64>,
    pub action: usize,
    pub created_at: u64,
    pub expires_at: u64,
    pub model_generation: u64,
}

Fields§

§id: DecisionId

Unique identifier.

§context: Vec<f64>

Context presented to the decision policy.

§action: usize

Selected action.

§created_at: u64

Caller-supplied decision timestamp.

§expires_at: u64

Last timestamp at which feedback is accepted, inclusively.

§model_generation: u64

Model generation that produced the action.