pub struct AggressivenessProfile {
pub density_target: f64,
pub bpe_entropy: f64,
pub ib_budget_ratio: f64,
}Expand description
Concrete tuning derived from one aggressiveness value. Every field is a pure
function of a, so the same a always yields the same knobs (determinism).
Fields§
§density_target: f64Fraction of tokens to keep (density target for density: / IB prose).
a=0.0 → 1.00 (keep everything), a=1.0 → 0.15 (keep ~15%).
bpe_entropy: f64BPE-entropy keep threshold for the entropy mode. Lines below this are
dropped. a=0.0 → 0.6 (keep almost all), a=1.0 → 2.0 (drop low-info).
ib_budget_ratio: f64Information-bottleneck keep ratio for task/IB modes.
a=0.0 → 0.60, a=1.0 → 0.10.
Implementations§
Source§impl AggressivenessProfile
impl AggressivenessProfile
Sourcepub fn from_level(a: f64) -> Self
pub fn from_level(a: f64) -> Self
Maps a ∈ [0,1] (clamped) onto the three tuning knobs. The constants are
a deliberate, monotonic starting point; Epic E (accuracy suite) is meant
to calibrate them empirically.
Trait Implementations§
Source§impl Clone for AggressivenessProfile
impl Clone for AggressivenessProfile
Source§fn clone(&self) -> AggressivenessProfile
fn clone(&self) -> AggressivenessProfile
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 moreimpl Copy for AggressivenessProfile
Source§impl Debug for AggressivenessProfile
impl Debug for AggressivenessProfile
Source§impl PartialEq for AggressivenessProfile
impl PartialEq for AggressivenessProfile
impl StructuralPartialEq for AggressivenessProfile
Auto Trait Implementations§
impl Freeze for AggressivenessProfile
impl RefUnwindSafe for AggressivenessProfile
impl Send for AggressivenessProfile
impl Sync for AggressivenessProfile
impl Unpin for AggressivenessProfile
impl UnsafeUnpin for AggressivenessProfile
impl UnwindSafe for AggressivenessProfile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more