shapley_weights: Calculate Shapley weight

Description Usage Arguments Value Author(s)

View source: R/shapley.R

Description

Calculate Shapley weight

Usage

1
shapley_weights(m, N, n_features, weight_zero_m = 10^6)

Arguments

m

Positive integer. Total number of features.

N

Positive integer. The number of unique combinations when sampling n_features features, without replacement, from a sample space consisting of m different features.

n_features

Positive integer. Represents the number of features you want to sample from a feature space consisting of m unique features. Note that 0 < = n_features <= m.

weight_zero_m

Positive integer. Represents the Shapley weight for two special cases, i.e. the case where you have either 0 or m features.

Value

Numeric

Author(s)

Nikolai Sellereite


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