shapley_weights: Calculate Shapley weight

shapley_weightsR Documentation

Calculate Shapley weight

Description

Calculate Shapley weight

Usage

shapley_weights(m, N, n_components, weight_zero_m = 10^6)

Arguments

m

Positive integer. Total number of features/feature groups.

N

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

n_components

Positive integer. Represents the number of features/feature groups you want to sample from a feature space consisting of m unique features/feature groups. Note that ⁠ 0 < = n_components <= 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/feature groups.

Value

Numeric

Author(s)

Nikolai Sellereite


NorskRegnesentral/shapr documentation built on April 19, 2024, 1:19 p.m.