pub struct Gate {
pub gain: Vec<f64>,
pub allowance: f64,
pub checks: u32,
pub deviated: u32,
}Expand description
The conservative gate’s ledger over the learned policy’s checks under the current fit
(select/policy.rs ledger_add_without): per joint draw, the replayed value of what the policy did
minus the fixed rule’s for the lessons its session had (A); α × the fixed rule’s replayed value
(B). A deviation passes while A + its own gain stays ≥ −B at the DELTA quantile. B is quality
(mistakes avoided), not money.
Fields§
§gain: Vec<f64>§allowance: f64§checks: u32§deviated: u32Trait Implementations§
Source§impl<'de> Deserialize<'de> for Gate
impl<'de> Deserialize<'de> for Gate
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 Gate
Auto Trait Implementations§
impl Freeze for Gate
impl RefUnwindSafe for Gate
impl Send for Gate
impl Sync for Gate
impl Unpin for Gate
impl UnsafeUnpin for Gate
impl UnwindSafe for Gate
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