Skip to main content

fpc_ale

Function fpc_ale 

Source
pub fn fpc_ale(
    fit: &FregreLmResult,
    data: &FdMatrix,
    scalar_covariates: Option<&FdMatrix>,
    component: usize,
    n_bins: usize,
) -> Result<AleResult, FdarError>
Expand description

ALE plot for an FPC component in a linear functional regression model.

ALE measures the average local effect of varying one FPC score on predictions, avoiding the extrapolation issues of PDP.

ยงErrors

See crate::explain_generic::generic_ale for error conditions.