pub struct PoolFit {
pub yields: Vec<(f64, f64)>,
pub per_lesson: f64,
pub latency: (f64, f64, f64),
pub latency_n: u32,
pub latency_reach: u32,
pub eta: f64,
pub slope: (f64, f64),
pub not: (f64, f64),
}Expand description
The pool’s learned state at the fit (pool_tokens).
Fields§
§yields: Vec<(f64, f64)>Per log2 bin of fill position, the yield’s Beta posterior (shown lessons applied), monotone non-increasing in position (pool adjacent violators over the bins).
per_lesson: f64Pool tokens per shown lesson.
latency: (f64, f64, f64)The model call’s duration in ms against its pool tokens: a + b·tokens, plus the residuals’
95% quantile, from latency_n calls.
latency_n: u32§latency_reach: u32The largest pool tokens LATENCY_MIN of those calls read at least (the LATENCY_MIN-th
largest; 0 with fewer calls): a budget above the baseline is feasible only up to this over
LATENCY_NEAR, where the latency fit is read among calls, not extrapolated.
eta: f64The model’s mean η of a labelled apply, its pool slope and its “not now” effect (mean, sd): what a lesson more in the pool is worth.
slope: (f64, f64)§not: (f64, f64)Trait Implementations§
Source§impl<'de> Deserialize<'de> for PoolFit
impl<'de> Deserialize<'de> for PoolFit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for PoolFit
Auto Trait Implementations§
impl Freeze for PoolFit
impl RefUnwindSafe for PoolFit
impl Send for PoolFit
impl Sync for PoolFit
impl Unpin for PoolFit
impl UnsafeUnpin for PoolFit
impl UnwindSafe for PoolFit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more