pub struct ModelWeights {
pub feature_weights: Vec<f64>,
pub bias: f64,
pub threshold: f64,
}Expand description
ML model weights (pre-trained)
Fields§
§feature_weights: Vec<f64>§bias: f64§threshold: f64Implementations§
Source§impl ModelWeights
impl ModelWeights
Sourcepub fn default_security_model() -> Self
pub fn default_security_model() -> Self
Create default weights based on security expertise
Trait Implementations§
Source§impl Clone for ModelWeights
impl Clone for ModelWeights
Source§fn clone(&self) -> ModelWeights
fn clone(&self) -> ModelWeights
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 ModelWeights
impl Debug for ModelWeights
Auto Trait Implementations§
impl Freeze for ModelWeights
impl RefUnwindSafe for ModelWeights
impl Send for ModelWeights
impl Sync for ModelWeights
impl Unpin for ModelWeights
impl UnwindSafe for ModelWeights
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