weight_matrix_cpp: Calculate weight matrix

Description Usage Arguments Value Author(s)

View source: R/RcppExports.R

Description

Calculate weight matrix

Usage

1
weight_matrix_cpp(features, m, n, w)

Arguments

features

List. Each of the elements equals an integer vector representing a valid combination of features.

m

Integer. Number of features

n

Integer. Number of combinations

w

Numeric vector of length n, i.e. w[i] equals the Shapley weight of feature combination i, represented by features[[i]].

Value

Matrix of dimension n x m + 1

Author(s)

Nikolai Sellereite


shapr documentation built on Jan. 28, 2021, 5:06 p.m.