pub struct TrimConfig {
pub acceptance_sharpness_r: f32,
pub screening_window_w: f32,
}Expand description
Multi-screen scoring parameters.
acceptance_sharpness_r matches the trim-and-square gate from the experiment:
square(clamp(1 - acceptance_sharpness_r * (1 - similarity), 0, 1)).
screening_window_w controls the causal softmask width in token positions.
Fields§
§acceptance_sharpness_r: f32Paper symbol r; larger values narrow the acceptance width 1 / r.
screening_window_w: f32Paper symbol w; causal distance window used by the softmask.
Implementations§
Trait Implementations§
Source§impl Clone for TrimConfig
impl Clone for TrimConfig
Source§fn clone(&self) -> TrimConfig
fn clone(&self) -> TrimConfig
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 TrimConfig
impl Debug for TrimConfig
Source§impl Default for TrimConfig
impl Default for TrimConfig
Source§impl<'de> Deserialize<'de> for TrimConfig
impl<'de> Deserialize<'de> for TrimConfig
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 TrimConfig
impl PartialEq for TrimConfig
Source§fn eq(&self, other: &TrimConfig) -> bool
fn eq(&self, other: &TrimConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TrimConfig
impl Serialize for TrimConfig
impl StructuralPartialEq for TrimConfig
Auto Trait Implementations§
impl Freeze for TrimConfig
impl RefUnwindSafe for TrimConfig
impl Send for TrimConfig
impl Sync for TrimConfig
impl Unpin for TrimConfig
impl UnsafeUnpin for TrimConfig
impl UnwindSafe for TrimConfig
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