pub struct AdaptiveDrawBudget {
pub enabled: bool,
pub min_draws: usize,
pub quantile_width_rel_epsilon: f64,
pub ess_target: f64,
}Expand description
Adaptive Bayesian draw budget (Laplace / conjugate path).
Cap by quantile-width relative change and/or ESS target under the latency
n_draws maximum. HMC ignores this and always draws the full request.
Fields§
§enabled: boolWhen false, materialize the full requested draw count.
min_draws: usizeMinimum draws before early-stop is eligible.
quantile_width_rel_epsilon: f64Relative 95% quantile-width change threshold (default 0.01).
ess_target: f64Stop when ESS of the effect draws reaches this target (default large).
Implementations§
Source§impl AdaptiveDrawBudget
impl AdaptiveDrawBudget
Sourcepub const fn enabled_default() -> Self
pub const fn enabled_default() -> Self
Enabled defaults: min 32 draws, 1% quantile-width change, high ESS target.
Trait Implementations§
Source§impl Clone for AdaptiveDrawBudget
impl Clone for AdaptiveDrawBudget
Source§fn clone(&self) -> AdaptiveDrawBudget
fn clone(&self) -> AdaptiveDrawBudget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AdaptiveDrawBudget
Source§impl Debug for AdaptiveDrawBudget
impl Debug for AdaptiveDrawBudget
Source§impl Default for AdaptiveDrawBudget
impl Default for AdaptiveDrawBudget
Source§impl PartialEq for AdaptiveDrawBudget
impl PartialEq for AdaptiveDrawBudget
impl StructuralPartialEq for AdaptiveDrawBudget
Auto Trait Implementations§
impl Freeze for AdaptiveDrawBudget
impl RefUnwindSafe for AdaptiveDrawBudget
impl Send for AdaptiveDrawBudget
impl Sync for AdaptiveDrawBudget
impl Unpin for AdaptiveDrawBudget
impl UnsafeUnpin for AdaptiveDrawBudget
impl UnwindSafe for AdaptiveDrawBudget
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