Base class for conditional sampling methods where features are sampled conditionally on other features. This is an abstract class that should be extended by concrete implementations.
Super class
xplainfi::FeatureSampler
-> ConditionalSampler
Methods
Method new()
Creates a new instance of the ConditionalSampler class
Usage
ConditionalSampler$new(task)
Arguments
task
(mlr3::Task) Task to sample from
Method sample()
Sample values for feature(s) conditionally on other features
Arguments
feature
(
character
) Feature name(s) to sample (can be single or multiple)data
(
data.table
) Data containing conditioning featuresconditioning_set
(character) Features to condition on (default: all other features)