pub struct PerformanceValidator {
pub check_training_time: bool,
pub check_prediction_time: bool,
pub check_memory_usage: bool,
pub max_training_time: f64,
pub max_prediction_time_per_sample: f64,
pub max_memory_usage: f64,
pub check_scalability: bool,
}Expand description
Performance validation and benchmarking
Fields§
§check_training_time: boolCheck training time limits
check_prediction_time: boolCheck prediction time limits
check_memory_usage: boolCheck memory usage limits
max_training_time: f64Maximum training time (seconds)
max_prediction_time_per_sample: f64Maximum prediction time per sample (milliseconds)
max_memory_usage: f64Maximum memory usage (MB)
check_scalability: boolCheck scalability properties
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PerformanceValidator
impl RefUnwindSafe for PerformanceValidator
impl Send for PerformanceValidator
impl Sync for PerformanceValidator
impl Unpin for PerformanceValidator
impl UnwindSafe for PerformanceValidator
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> 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