pub struct SHAPConfig {
pub n_samples: usize,
pub max_coalition_size: Option<usize>,
pub use_kernel_shap: bool,
pub background_size: usize,
pub random_state: Option<u64>,
}Expand description
Configuration for SHAP value computation
Fields§
§n_samples: usizeNumber of samples for SHAP estimation
max_coalition_size: Option<usize>Maximum coalition size to consider
use_kernel_shap: boolWhether to use KernelSHAP approximation
background_size: usizeBackground dataset size for TreeSHAP
random_state: Option<u64>Trait Implementations§
Source§impl Clone for SHAPConfig
impl Clone for SHAPConfig
Source§fn clone(&self) -> SHAPConfig
fn clone(&self) -> SHAPConfig
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 moreSource§impl Debug for SHAPConfig
impl Debug for SHAPConfig
Auto Trait Implementations§
impl Freeze for SHAPConfig
impl RefUnwindSafe for SHAPConfig
impl Send for SHAPConfig
impl Sync for SHAPConfig
impl Unpin for SHAPConfig
impl UnwindSafe for SHAPConfig
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