Skip to main content

AffinityTuning

Struct AffinityTuning 

Source
pub struct AffinityTuning {
    pub grade_unit_bond: f64,
    pub grade_unit_chem: f64,
    pub neg_factor: f64,
    pub tier_decay: [f64; 5],
    pub cross_penalty_ratio: f64,
    pub cross_penalty_start: f64,
    pub delta_threshold: f64,
    pub demo_boost: f64,
    pub floor_ratio: f64,
    pub time_decay_rate: f64,
    pub time_decay_floor: f64,
}
Expand description

Tuning knobs for the 4.0 pipeline, env-driven server-side.

Fields§

§grade_unit_bond: f64

Raw score per grade step on the bond axes (AFFINITY_GRADE_UNIT_BOND). The 2.96× spread between the two units is the judge’s measured grading asymmetry (tension reaches grade ≥2 on ~half of turns, trust is graded 0 on ~80%), written down where it can be argued with.

§grade_unit_chem: f64

Raw score per grade step on the chemistry axes (AFFINITY_GRADE_UNIT_CHEM).

§neg_factor: f64

Extra multiplier on negative raw scores (AFFINITY_NEG_FACTOR) — keeps 2.0’s “slow up, fast down” asymmetry.

§tier_decay: [f64; 5]

Positive-delta damping per tier 1..=5 (AFFINITY_TIER_DECAY).

§cross_penalty_ratio: f64

Cross-line penalty ceiling as a multiple of the line’s unit (AFFINITY_CROSS_PENALTY_RATIO): κ_line = ratio · u_line. Tying κ to the unit makes the double-high break-even independent of the unit — per-line units would otherwise silently move the wall.

§cross_penalty_start: f64

Counterpart line score where the penalty starts (AFFINITY_CROSS_PENALTY_START).

§delta_threshold: f64

Commit threshold θ (AFFINITY_DELTA_THRESHOLD); 0 commits every turn.

§demo_boost: f64

Multiplier on the judge’s positive raw component for demo sessions (AFFINITY_DEMO_BOOST); rule nudges are unaffected.

§floor_ratio: f64

Endpoint floor ratio φ (AFFINITY_FLOOR_RATIO): a level-1 verdict reads φ·counterpart instead of 0. Must stay ≤ 0.24 so the floor can never touch a level-2 verdict (1/3·B(0) ≈ 0.2436).

§time_decay_rate: f64

Endpoint absence decay per day (AFFINITY_TIME_DECAY_RATE).

§time_decay_floor: f64

Endpoint absence decay floor (AFFINITY_TIME_DECAY_FLOOR).

Trait Implementations§

Source§

impl Clone for AffinityTuning

Source§

fn clone(&self) -> AffinityTuning

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AffinityTuning

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AffinityTuning

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for AffinityTuning

Source§

fn eq(&self, other: &AffinityTuning) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for AffinityTuning

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.