shapley_weights: Calculate Shapley weight

View source: R/shapley.R

shapley_weightsR Documentation

Calculate Shapley weight

Description

Calculate Shapley weight

Usage

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 May 4, 2023, 5:10 p.m.