pub struct BayesianModelSelector_BA { /* private fields */ }Expand description
Model averaging using Bayesian weights
Implementations§
Source§impl BayesianModelAverager
impl BayesianModelAverager
Sourcepub fn new(selection_result: BayesianModelSelectionResult) -> Self
pub fn new(selection_result: BayesianModelSelectionResult) -> Self
Create new model averager from selection result
Sourcepub fn predict(&self, model_predictions: &[Array1<f64>]) -> Result<Array1<f64>>
pub fn predict(&self, model_predictions: &[Array1<f64>]) -> Result<Array1<f64>>
Make prediction using Bayesian model averaging
Sourcepub fn get_weights(&self) -> &[f64]
pub fn get_weights(&self) -> &[f64]
Get model weights
Sourcepub fn effective_number_of_models(&self) -> f64
pub fn effective_number_of_models(&self) -> f64
Get effective number of models (entropy-based measure)
Auto Trait Implementations§
impl Freeze for BayesianModelAverager
impl RefUnwindSafe for BayesianModelAverager
impl Send for BayesianModelAverager
impl Sync for BayesianModelAverager
impl Unpin for BayesianModelAverager
impl UnwindSafe for BayesianModelAverager
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