Struct nuts_rs::SamplerArgs
source · pub struct SamplerArgs {
pub num_tune: u64,
pub num_draws: u64,
pub maxdepth: u64,
pub store_gradient: bool,
pub store_unconstrained: bool,
pub max_energy_error: f64,
pub store_divergences: bool,
pub mass_matrix_adapt: GradDiagOptions,
}
Expand description
Settings for the NUTS sampler
Fields§
§num_tune: u64
The number of tuning steps, where we fit the step size and mass matrix.
num_draws: u64
The number of draws after tuning
maxdepth: u64
The maximum tree depth during sampling. The number of leapfrog steps is smaller than 2 ^ maxdepth.
store_gradient: bool
Store the gradient in the SampleStats
store_unconstrained: bool
Store each unconstrained parameter vector in the sampler stats
max_energy_error: f64
If the energy error is larger than this threshold we treat the leapfrog step as a divergence.
store_divergences: bool
Store detailed information about each divergence in the sampler stats
mass_matrix_adapt: GradDiagOptions
Settings for mass matrix adaptation.
Trait Implementations§
source§impl Clone for SamplerArgs
impl Clone for SamplerArgs
source§fn clone(&self) -> SamplerArgs
fn clone(&self) -> SamplerArgs
Returns a copy 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 Default for SamplerArgs
impl Default for SamplerArgs
impl Copy for SamplerArgs
Auto Trait Implementations§
impl RefUnwindSafe for SamplerArgs
impl Send for SamplerArgs
impl Sync for SamplerArgs
impl Unpin for SamplerArgs
impl UnwindSafe for SamplerArgs
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