Struct nuts_rs::SamplerArgs
source · [−]pub struct SamplerArgs {
pub num_tune: u64,
pub maxdepth: u64,
pub store_gradient: bool,
pub max_energy_error: f64,
pub step_size_adapt: DualAverageSettings,
pub mass_matrix_adapt: DiagAdaptExpSettings,
}
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.
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
max_energy_error: f64
If the energy error is larger than this threshold we treat the leapfrog step as a divergence.
step_size_adapt: DualAverageSettings
Settings for step size adaptation.
mass_matrix_adapt: DiagAdaptExpSettings
Settings for mass matrix adaptation.
Trait Implementations
sourceimpl Clone for SamplerArgs
impl Clone for SamplerArgs
sourcefn clone(&self) -> SamplerArgs
fn clone(&self) -> SamplerArgs
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more