pub struct AttributionConfig {
pub max_line_distance: u32,
pub candidate_radius_multiplier: u32,
pub top_k_causes: usize,
pub softmax_temperature: f64,
pub distance_decay: f64,
pub missing_line_confidence: f64,
pub decay_factor: f64,
}Fields§
§max_line_distance: u32The baseline same-file distance cut-off.
candidate_radius_multiplier: u32Radius multiplier applied before candidate selection.
top_k_causes: usizeMaximum causes emitted for any single effect.
softmax_temperature: f64Softmax temperature used to normalize candidate scores.
distance_decay: f64Distance decay constant used by attribution_score_with_confidence.
missing_line_confidence: f64Confidence assigned when a line cannot be resolved exactly.
decay_factor: f64Exponential decay factor applied to graph edge weights during ingest.
Implementations§
Source§impl AttributionConfig
impl AttributionConfig
pub fn validate(&self) -> Result<(), CeaCoreError>
Trait Implementations§
Source§impl Clone for AttributionConfig
impl Clone for AttributionConfig
Source§fn clone(&self) -> AttributionConfig
fn clone(&self) -> AttributionConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AttributionConfig
impl Debug for AttributionConfig
Source§impl Default for AttributionConfig
impl Default for AttributionConfig
Source§impl<'de> Deserialize<'de> for AttributionConfig
impl<'de> Deserialize<'de> for AttributionConfig
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
Source§impl PartialEq for AttributionConfig
impl PartialEq for AttributionConfig
Source§fn eq(&self, other: &AttributionConfig) -> bool
fn eq(&self, other: &AttributionConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AttributionConfig
impl Serialize for AttributionConfig
impl StructuralPartialEq for AttributionConfig
Auto Trait Implementations§
impl Freeze for AttributionConfig
impl RefUnwindSafe for AttributionConfig
impl Send for AttributionConfig
impl Sync for AttributionConfig
impl Unpin for AttributionConfig
impl UnsafeUnpin for AttributionConfig
impl UnwindSafe for AttributionConfig
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