pub struct DistributionalModelState {Show 13 fields
pub config: SGBTConfig,
pub location_steps: Vec<StepSnapshot>,
pub scale_steps: Vec<StepSnapshot>,
pub location_base: f64,
pub scale_base: f64,
pub base_initialized: bool,
pub initial_targets: Vec<f64>,
pub initial_target_count: usize,
pub samples_seen: u64,
pub rng_state: u64,
pub uncertainty_modulated_lr: bool,
pub rolling_sigma_mean: f64,
pub ewma_sq_err: f64,
}Expand description
Serializable state for DistributionalSGBT.
Fields§
§config: SGBTConfig§location_steps: Vec<StepSnapshot>§scale_steps: Vec<StepSnapshot>§location_base: f64§scale_base: f64§base_initialized: bool§initial_targets: Vec<f64>§initial_target_count: usize§samples_seen: u64§rng_state: u64§uncertainty_modulated_lr: bool§rolling_sigma_mean: f64§ewma_sq_err: f64EWMA of squared prediction errors (for empirical σ mode).
Trait Implementations§
Source§impl Clone for DistributionalModelState
impl Clone for DistributionalModelState
Source§fn clone(&self) -> DistributionalModelState
fn clone(&self) -> DistributionalModelState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DistributionalModelState
impl Debug for DistributionalModelState
Source§impl<'de> Deserialize<'de> for DistributionalModelState
impl<'de> Deserialize<'de> for DistributionalModelState
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
Auto Trait Implementations§
impl Freeze for DistributionalModelState
impl RefUnwindSafe for DistributionalModelState
impl Send for DistributionalModelState
impl Sync for DistributionalModelState
impl Unpin for DistributionalModelState
impl UnsafeUnpin for DistributionalModelState
impl UnwindSafe for DistributionalModelState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more