pub struct KernelApproximationValidator { /* private fields */ }Expand description
Comprehensive validation framework for kernel approximation methods KernelApproximationValidator
Implementations§
Source§impl KernelApproximationValidator
impl KernelApproximationValidator
Sourcepub fn new(config: ValidationConfig) -> Self
pub fn new(config: ValidationConfig) -> Self
Create a new validator with configuration
Sourcepub fn add_theoretical_bound(&mut self, bound: TheoreticalBound)
pub fn add_theoretical_bound(&mut self, bound: TheoreticalBound)
Add theoretical bounds for a specific method
Sourcepub fn validate_method<T: ValidatableKernelMethod>(
&self,
method: &T,
data: &Array2<f64>,
true_kernel: Option<&Array2<f64>>,
) -> Result<ValidationResult>
pub fn validate_method<T: ValidatableKernelMethod>( &self, method: &T, data: &Array2<f64>, true_kernel: Option<&Array2<f64>>, ) -> Result<ValidationResult>
Validate a kernel approximation method
Sourcepub fn cross_validate<T: ValidatableKernelMethod>(
&self,
method: &T,
data: &Array2<f64>,
targets: Option<&Array1<f64>>,
parameter_grid: HashMap<String, Vec<f64>>,
) -> Result<CrossValidationResult>
pub fn cross_validate<T: ValidatableKernelMethod>( &self, method: &T, data: &Array2<f64>, targets: Option<&Array1<f64>>, parameter_grid: HashMap<String, Vec<f64>>, ) -> Result<CrossValidationResult>
Perform cross-validation for parameter selection
Trait Implementations§
Source§impl Clone for KernelApproximationValidator
impl Clone for KernelApproximationValidator
Source§fn clone(&self) -> KernelApproximationValidator
fn clone(&self) -> KernelApproximationValidator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KernelApproximationValidator
impl RefUnwindSafe for KernelApproximationValidator
impl Send for KernelApproximationValidator
impl Sync for KernelApproximationValidator
impl Unpin for KernelApproximationValidator
impl UnwindSafe for KernelApproximationValidator
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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