pub struct BMA_Averager { /* private fields */ }Implementations§
Source§impl BayesianModelAverager
impl BayesianModelAverager
pub fn new(config: BMAConfig) -> Self
pub fn with_prior_weights(self, weights: HashMap<String, f64>) -> Result<Self>
pub fn add_model(&mut self, model: ModelInfo) -> Result<()>
pub fn add_models(&mut self, models: Vec<ModelInfo>) -> Result<()>
pub fn compute_average( &mut self, y_true: Option<&ArrayView1<'_, f64>>, ) -> Result<BMAResult>
pub fn get_model_rankings(&self, result: &BMAResult) -> Vec<(String, f64)>
pub fn prune_models(&mut self, min_weight: f64) -> usize
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