pub enum KernelSolver {
NormalEquations,
HouseholderQr,
}Expand description
Linear solver used by Kernel SHAP’s constrained weighted least squares.
Variants§
NormalEquations
Fast, allocation-light solve of the normal equations.
HouseholderQr
Householder QR on the weighted design matrix. This uses more memory but avoids squaring the design matrix’s condition number.
Trait Implementations§
Source§impl Clone for KernelSolver
impl Clone for KernelSolver
Source§fn clone(&self) -> KernelSolver
fn clone(&self) -> KernelSolver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KernelSolver
Source§impl Debug for KernelSolver
impl Debug for KernelSolver
Source§impl Default for KernelSolver
impl Default for KernelSolver
Source§fn default() -> KernelSolver
fn default() -> KernelSolver
Returns the “default value” for a type. Read more
impl Eq for KernelSolver
Source§impl PartialEq for KernelSolver
impl PartialEq for KernelSolver
impl StructuralPartialEq for KernelSolver
Auto Trait Implementations§
impl Freeze for KernelSolver
impl RefUnwindSafe for KernelSolver
impl Send for KernelSolver
impl Sync for KernelSolver
impl Unpin for KernelSolver
impl UnsafeUnpin for KernelSolver
impl UnwindSafe for KernelSolver
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