| MarginalSAGE | R Documentation |
SAGE with marginal sampling (features are marginalized independently). This is the standard SAGE implementation.
xplainfi::FeatureImportanceMethod -> xplainfi::SAGE -> MarginalSAGE
new()Creates a new instance of the MarginalSAGE class.
MarginalSAGE$new( task, learner, measure = NULL, resampling = NULL, features = NULL, n_permutations = 10L, batch_size = 5000L, n_samples = 100L, early_stopping = FALSE, se_threshold = 0.01, min_permutations = 10L, check_interval = 1L )
task, learner, measure, resampling, features, n_permutations, batch_size, n_samples, early_stopping, se_threshold, min_permutations, check_intervalPassed to SAGE.
clone()The objects of this class are cloneable with this method.
MarginalSAGE$clone(deep = FALSE)
deepWhether to make a deep clone.
ConditionalSAGE
library(mlr3)
task = tgen("friedman1")$generate(n = 100)
sage = MarginalSAGE$new(
task = task,
learner = lrn("regr.ranger", num.trees = 50),
measure = msr("regr.mse"),
n_permutations = 3L,
n_samples = 20
)
sage$compute()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.