pub struct TaskEvalResult {Show 15 fields
pub task: Task,
pub dataset: DatasetId,
pub backend: String,
pub backend_display: Option<String>,
pub seed: u64,
pub success: bool,
pub error: Option<String>,
pub metrics: HashMap<String, f64>,
pub num_examples: usize,
pub duration_ms: Option<f64>,
pub label_shift: Option<LabelShift>,
pub robustness: Option<RobustnessResults>,
pub stratified: Option<StratifiedMetrics>,
pub confidence_intervals: Option<ConfidenceIntervals>,
pub kb_version: Option<String>,
}Expand description
Results from evaluating a task-dataset-backend combination.
Fields§
§task: TaskTask being evaluated
dataset: DatasetIdDataset used
backend: StringBackend name
backend_display: Option<String>Backend display name (may include composition details, e.g. stacked(regex+heuristic)).
Best-effort: when absent, callers should fall back to backend.
seed: u64Random seed used for sampling/examples.
success: boolWhether evaluation succeeded
error: Option<String>Error message if failed
metrics: HashMap<String, f64>Metrics (task-specific, stored as JSON-serializable map)
num_examples: usizeNumber of examples evaluated
duration_ms: Option<f64>Time taken in milliseconds (if available)
label_shift: Option<LabelShift>Label shift/familiarity metrics (if computed for zero-shot)
robustness: Option<RobustnessResults>Robustness scores (if robustness testing was enabled)
stratified: Option<StratifiedMetrics>Stratified metrics by various dimensions
confidence_intervals: Option<ConfidenceIntervals>Confidence intervals for key metrics (if computed)
kb_version: Option<String>KB version used (if available from dataset metadata)
Implementations§
Source§impl TaskEvalResult
impl TaskEvalResult
Sourcepub fn is_skipped(&self) -> bool
pub fn is_skipped(&self) -> bool
Check if this is a “skipped” result (feature not available or incompatible) vs actual failure
Sourcepub fn primary_f1(&self) -> Option<f64>
pub fn primary_f1(&self) -> Option<f64>
Get primary F1 metric for ranking
Trait Implementations§
Source§impl Clone for TaskEvalResult
impl Clone for TaskEvalResult
Source§fn clone(&self) -> TaskEvalResult
fn clone(&self) -> TaskEvalResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TaskEvalResult
impl Debug for TaskEvalResult
Source§impl<'de> Deserialize<'de> for TaskEvalResult
impl<'de> Deserialize<'de> for TaskEvalResult
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>,
Source§impl From<&TaskEvalResult> for EvalHistoryEntry
impl From<&TaskEvalResult> for EvalHistoryEntry
Source§fn from(result: &TaskEvalResult) -> Self
fn from(result: &TaskEvalResult) -> Self
Auto Trait Implementations§
impl Freeze for TaskEvalResult
impl RefUnwindSafe for TaskEvalResult
impl Send for TaskEvalResult
impl Sync for TaskEvalResult
impl Unpin for TaskEvalResult
impl UnsafeUnpin for TaskEvalResult
impl UnwindSafe for TaskEvalResult
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
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>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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