pub struct MLPredictionConfig {
pub enable_hybrid_fallback: bool,
pub confidence_threshold: f32,
pub feature_weights: HashMap<String, f32>,
pub strategy_weights: HashMap<RetrievalStrategy, f32>,
}Expand description
Configuration for ML prediction service
Fields§
§enable_hybrid_fallback: bool§confidence_threshold: f32§feature_weights: HashMap<String, f32>§strategy_weights: HashMap<RetrievalStrategy, f32>Trait Implementations§
Source§impl Clone for MLPredictionConfig
impl Clone for MLPredictionConfig
Source§fn clone(&self) -> MLPredictionConfig
fn clone(&self) -> MLPredictionConfig
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 MLPredictionConfig
impl Debug for MLPredictionConfig
Source§impl Default for MLPredictionConfig
impl Default for MLPredictionConfig
Source§impl<'de> Deserialize<'de> for MLPredictionConfig
impl<'de> Deserialize<'de> for MLPredictionConfig
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 MLPredictionConfig
impl RefUnwindSafe for MLPredictionConfig
impl Send for MLPredictionConfig
impl Sync for MLPredictionConfig
impl Unpin for MLPredictionConfig
impl UnwindSafe for MLPredictionConfig
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