pub struct EfTrainingPoint {
pub query_norm: f64,
pub query_variance: f64,
pub ef_used: usize,
pub result_count: usize,
pub search_time_us: u64,
pub recall: Option<f64>,
}Expand description
Training point for the ef (beam width) model.
Records search characteristics so the model can learn the optimal ef_search for a given query profile. Carries both the ef that was used AND the recall observed (when available), so the 2-head model can learn the ef → recall tradeoff jointly.
Fields§
§query_norm: f64L2 norm of the query vector.
query_variance: f64Variance across query dimensions.
ef_used: usizeef_search value used for this query.
result_count: usizeNumber of results returned.
search_time_us: u64Wall-clock search time in microseconds.
recall: Option<f64>Observed recall for this query (None if not measured).
Trait Implementations§
Source§impl Clone for EfTrainingPoint
impl Clone for EfTrainingPoint
Source§impl Debug for EfTrainingPoint
impl Debug for EfTrainingPoint
Source§impl<'de> Deserialize<'de> for EfTrainingPoint
impl<'de> Deserialize<'de> for EfTrainingPoint
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
Auto Trait Implementations§
impl Freeze for EfTrainingPoint
impl RefUnwindSafe for EfTrainingPoint
impl Send for EfTrainingPoint
impl Sync for EfTrainingPoint
impl Unpin for EfTrainingPoint
impl UnsafeUnpin for EfTrainingPoint
impl UnwindSafe for EfTrainingPoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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