pub struct RelevancyConfig {
pub actual_field: String,
pub expected_binding: String,
pub k: usize,
pub r: Option<usize>,
pub functions: Vec<RelevancyFn>,
}Expand description
Configuration for relevancy measurement on a single op template.
Fields§
§actual_field: StringColumn/field name to extract actual result indices from.
expected_binding: StringPolydat binding name that produces ground truth indices.
k: usizeRecall window — number of top results used in the @k
metric computation. The first k of actual are
compared against the first k of expected.
r: Option<usize>Optional retrieval window. When set, declares “we
retrieved exactly r results, but score using only the
first k of them” (the “k-recall@r” semantic). Runtime
asserts actual.len() == r. When None, no separate
retrieval window is enforced — actual is truncated to
k for the comparison and any length is accepted (the
pre-r behavior).
functions: Vec<RelevancyFn>Which functions to compute.
Trait Implementations§
Source§impl Clone for RelevancyConfig
impl Clone for RelevancyConfig
Auto Trait Implementations§
impl Freeze for RelevancyConfig
impl RefUnwindSafe for RelevancyConfig
impl Send for RelevancyConfig
impl Sync for RelevancyConfig
impl Unpin for RelevancyConfig
impl UnsafeUnpin for RelevancyConfig
impl UnwindSafe for RelevancyConfig
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,
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