Calculate weight matrix
weight_matrix_cpp(coalitions, m, n, w)
Matrix of dimension n x m + 1
List. Each of the elements equals an integer vector representing a valid combination of features/feature groups.
Integer. Number of features/feature groups.
Integer. Number of combinations.
Numeric vector
Should have length n
. w[i]
equals the Shapley weight of feature/feature group combination i
,
represented by coalitions[[i]]
.
Nikolai Sellereite, Martin Jullum