Learn R Programming

IOHanalyzer (version 0.1.8.10)

get_shapley_values: Get the shapley-values of a portfolio of algorithms

Description

Based on the contribution to the ECDF-curve of the VBS of the portfolio

Usage

get_shapley_values(
  dsList,
  targets,
  scale.log = T,
  group_size = 5,
  max_perm_size = 10,
  normalize = T
)

Arguments

dsList

The DataSetList object

targets

A list or data.table containing the targets per function / dimension. If this is a data.table, it needs columns 'target', 'DIM' and 'funcId'

scale.log

Whether to use logarithmic scaling for the runtimes at which the ecdf will be sampled or not

group_size

How many permutation groups will be considered

max_perm_size

The maximum limit for permutations to be considered

normalize

Whether or not to ensure the resulting values will be in [0,1]

Examples

Run this code
data.table::setDTthreads(1)
dsl_sub <- subset(dsl, funcId == 1)
get_shapley_values(dsl_sub, get_ECDF_targets(dsl_sub), group_size = 2)

Run the code above in your browser using DataLab