pub struct EnsembleConfig {
pub strategy: EnsembleStrategy,
pub model_weights: HashMap<String, f64>,
pub min_models: usize,
pub parallel_execution: bool,
pub model_timeout_ms: Option<u64>,
}Expand description
Ensemble configuration.
Fields§
§strategy: EnsembleStrategyEnsemble strategy
model_weights: HashMap<String, f64>Model weights (for weighted averaging)
min_models: usizeMinimum models for consensus
parallel_execution: boolEnable parallel execution
model_timeout_ms: Option<u64>Timeout for individual models
Implementations§
Trait Implementations§
Source§impl Clone for EnsembleConfig
impl Clone for EnsembleConfig
Source§fn clone(&self) -> EnsembleConfig
fn clone(&self) -> EnsembleConfig
Returns a duplicate 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 Debug for EnsembleConfig
impl Debug for EnsembleConfig
Source§impl Default for EnsembleConfig
impl Default for EnsembleConfig
Source§impl<'de> Deserialize<'de> for EnsembleConfig
impl<'de> Deserialize<'de> for EnsembleConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EnsembleConfig
impl RefUnwindSafe for EnsembleConfig
impl Send for EnsembleConfig
impl Sync for EnsembleConfig
impl Unpin for EnsembleConfig
impl UnwindSafe for EnsembleConfig
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