interpret-permute-methods: Permutation importance result methods.

interpret-permute-methodsR Documentation

Permutation importance result methods.

Description

These methods provide the standard print(), summary(), and plot() interfaces for funcml_permute objects returned by interpret(method = "permute").

Usage

## S3 method for class 'funcml_permute'
plot(x, ...)

## S3 method for class 'funcml_permute'
print(x, ...)

## S3 method for class 'funcml_permute'
summary(object, ...)

Arguments

x

A funcml_permute object.

...

Additional arguments passed to the underlying method.

object

A funcml_permute object.

Value

plot() returns a ggplot2 object. print() returns the input object invisibly. summary() returns the permutation importance table invisibly.

Examples

fit_obj <- fit(mpg ~ wt + hp + disp, data = mtcars, model = "rpart",
  spec = list(cp = 0.01, minsplit = 5))
perm <- interpret(
  fit = fit_obj,
  data = mtcars,
  method = "permute",
  features = c("wt", "hp"),
  nsim = 1,
  metric = "rmse"
)
print(perm)
summary(perm)
plot(perm)

funcml documentation built on Aug. 22, 2026, 5:08 p.m.