Implements marginal sampling for PFI, where the feature of interest is sampled independently of other features
Super class
xplainfi::FeatureSampler
-> MarginalSampler
Methods
Method new()
Creates a new instance of the MarginalSampler class
Usage
MarginalSampler$new(task)
Arguments
task
(mlr3::Task) Task to sample from
Method sample()
Sample values for feature(s) by permutation (marginal distribution)
Arguments
feature
(
character
) Feature name(s) to sample (can be single or multiple)data
(
data.table
) Data to permute the feature(s) in