pub struct BayesianModelSelector { /* private fields */ }Expand description
Bayesian model selector
Implementations§
Source§impl BayesianModelSelector
impl BayesianModelSelector
Sourcepub fn new(method: EvidenceEstimationMethod, random_state: Option<u64>) -> Self
pub fn new(method: EvidenceEstimationMethod, random_state: Option<u64>) -> Self
Create a new Bayesian model selector
Sourcepub fn with_prior_probabilities(self, priors: Vec<f64>) -> Result<Self>
pub fn with_prior_probabilities(self, priors: Vec<f64>) -> Result<Self>
Set prior probabilities for models (must sum to 1)
Sourcepub fn compare_models<F>(
&mut self,
model_results: &[(String, ModelEvidenceData)],
) -> Result<BayesianModelSelectionResult>where
F: FloatTrait + ToPrimitive,
pub fn compare_models<F>(
&mut self,
model_results: &[(String, ModelEvidenceData)],
) -> Result<BayesianModelSelectionResult>where
F: FloatTrait + ToPrimitive,
Compare models using Bayesian evidence
Auto Trait Implementations§
impl Freeze for BayesianModelSelector
impl RefUnwindSafe for BayesianModelSelector
impl Send for BayesianModelSelector
impl Sync for BayesianModelSelector
impl Unpin for BayesianModelSelector
impl UnwindSafe for BayesianModelSelector
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> 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