pub struct ReportBuilder { /* private fields */ }Expand description
Builder for constructing evaluation reports.
Implementations§
Source§impl ReportBuilder
impl ReportBuilder
Sourcepub fn with_core_metrics(self, include: bool) -> Self
pub fn with_core_metrics(self, include: bool) -> Self
Include core metrics (default: true).
Sourcepub fn with_error_analysis(self, include: bool) -> Self
pub fn with_error_analysis(self, include: bool) -> Self
Include error analysis (default: true).
Sourcepub fn with_bias_analysis(self, include: bool) -> Self
pub fn with_bias_analysis(self, include: bool) -> Self
Include bias analysis (default: false). Only meaningful for models that detect PER/ORG entities.
Sourcepub fn with_data_quality(self, include: bool) -> Self
pub fn with_data_quality(self, include: bool) -> Self
Include data quality checks (default: false).
Sourcepub fn with_calibration(self, include: bool) -> Self
pub fn with_calibration(self, include: bool) -> Self
Include calibration analysis (default: false). Only meaningful for models that provide confidence scores.
Sourcepub fn with_test_data(self, data: Vec<TestCase>) -> Self
pub fn with_test_data(self, data: Vec<TestCase>) -> Self
Set test data for evaluation.
Sourcepub fn build<M: Model>(self, model: &M) -> EvalReport
pub fn build<M: Model>(self, model: &M) -> EvalReport
Build the report by running the model on test data.
Auto Trait Implementations§
impl Freeze for ReportBuilder
impl RefUnwindSafe for ReportBuilder
impl Send for ReportBuilder
impl Sync for ReportBuilder
impl Unpin for ReportBuilder
impl UnsafeUnpin for ReportBuilder
impl UnwindSafe for ReportBuilder
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<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>
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