Skip to main content

generic_lime

Function generic_lime 

Source
pub fn generic_lime(
    model: &dyn FpcPredictor,
    data: &FdMatrix,
    _scalar_covariates: Option<&FdMatrix>,
    observation: usize,
    n_samples: usize,
    kernel_width: f64,
    seed: u64,
) -> Result<LimeResult, FdarError>
Expand description

Generic LIME explanation for any FPC-based model.

ยงErrors

Returns FdarError::InvalidParameter if observation >= n, n_samples is zero, kernel_width <= 0, or the model has zero components. Returns FdarError::InvalidDimension if data columns do not match the model. Returns FdarError::ComputationFailed if the internal LIME computation fails.