pub struct SparseIndependentMasker { /* private fields */ }Expand description
Interventional masker backed by CSR background rows.
Implementations§
Source§impl SparseIndependentMasker
impl SparseIndependentMasker
pub fn new(background: SparseMatrix) -> Result<Self>
pub fn background(&self) -> &SparseMatrix
pub fn mask( &self, sample: SparseRowView<'_>, present: &[bool], ) -> Result<SparseMatrix>
Trait Implementations§
Source§impl Clone for SparseIndependentMasker
impl Clone for SparseIndependentMasker
Source§fn clone(&self) -> SparseIndependentMasker
fn clone(&self) -> SparseIndependentMasker
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 moreAuto Trait Implementations§
impl Freeze for SparseIndependentMasker
impl RefUnwindSafe for SparseIndependentMasker
impl Send for SparseIndependentMasker
impl Sync for SparseIndependentMasker
impl Unpin for SparseIndependentMasker
impl UnsafeUnpin for SparseIndependentMasker
impl UnwindSafe for SparseIndependentMasker
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