pub struct RelevancyConfig {
pub actual_field: String,
pub expected_binding: String,
pub k: usize,
pub r: Option<usize>,
pub admitted_binding: Option<String>,
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).
admitted_binding: Option<String>Optional wire giving the number of rows the cycle’s predicate
admits (SRD-115 §4.5). With it, an op that declares r must
return min(r, admitted) rows instead of exactly r: under a
predicate a target cannot return more rows than qualify.
functions: Vec<RelevancyFn>Which functions to compute.
Trait Implementations§
Source§impl Clone for RelevancyConfig
impl Clone for RelevancyConfig
Auto Trait Implementations§
impl Forget for RelevancyConfig
impl Freeze for RelevancyConfig
impl Move for RelevancyConfig
impl RefUnwindSafe for RelevancyConfig
impl Send for RelevancyConfigwhere
RawVecInner: Send,
impl Sync for RelevancyConfigwhere
RawVecInner: Sync,
impl Unpin for RelevancyConfig
impl UnsafeUnpin for RelevancyConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<RelevancyFn>: UnsafeUnpin,
impl UnwindSafe for RelevancyConfigwhere
RawVecInner: UnwindSafe,
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
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> ⓘ
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> ⓘ
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