#[non_exhaustive]pub enum ShapleyMode {
Exact,
MonteCarlo {
n_samples: usize,
},
Permutation {
n_permutations: usize,
},
}Expand description
Shapley estimation mode.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Exact
Exact enumeration of all coalitions (2^n).
MonteCarlo
Monte Carlo coalition sampling.
Permutation
Random permutation sampling (classic Shapley estimator).
Trait Implementations§
Source§impl Clone for ShapleyMode
impl Clone for ShapleyMode
Source§fn clone(&self) -> ShapleyMode
fn clone(&self) -> ShapleyMode
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 ShapleyMode
Source§impl Debug for ShapleyMode
impl Debug for ShapleyMode
impl Eq for ShapleyMode
Source§impl Hash for ShapleyMode
impl Hash for ShapleyMode
Source§impl PartialEq for ShapleyMode
impl PartialEq for ShapleyMode
impl StructuralPartialEq for ShapleyMode
Auto Trait Implementations§
impl Freeze for ShapleyMode
impl RefUnwindSafe for ShapleyMode
impl Send for ShapleyMode
impl Sync for ShapleyMode
impl Unpin for ShapleyMode
impl UnsafeUnpin for ShapleyMode
impl UnwindSafe for ShapleyMode
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