Learn R Programming

MLwrap (version 0.3.0)

plot_pfi: Plotting Permutation Feature Importance Barplot

Description

The plot_pfi() function generates feature importance estimates via Permutation Feature Importance measuring performance degradation when each feature's values are randomly permuted while holding all other features constant. Provides model-agnostic importance ranking independent of feature-target correlation patterns, capturing both linear and non-linear predictive contributions to model performance.

Usage

plot_pfi(analysis_object, show_table = FALSE)

Value

analysis_object

Arguments

analysis_object

Fitted analysis_object with 'sensitivity_analysis(methods = "PFI")'.

show_table

Boolean. Whether to print PFI results table.

See Also

sensitivity_analysis

Examples

Run this code
# Note: For obtaining the PFI plot results the user needs to complete till
# sensitivity_analysis( ) function of the MLwrap pipeline using the PFI
# method.
# See the full pipeline example under sensitivity_analysis()
# (Requires sensitivity_analysis(methods = "PFI"))
# Final call signature:
# plot_pfi(wrap_object)

Run the code above in your browser using DataLab