shapiq.approximator.RegressionFBIIΒΆ
- class shapiq.approximator.RegressionFBII(n, max_order=2, *, pairing_trick=False, sampling_weights=None, random_state=None, **kwargs)[source]ΒΆ
Bases:
Regression[Literal[βFBIIβ, βBVβ]]Estimates the FBII values using KernelSHAP.
The Faithful KernelSHAP regression is described in Tsai et al. (2023) Tsai et al. [2023]. The method estimates the Faithful Banzhaf interaction index (FBII).
See also
KernelSHAP: The KernelSHAPapproximator for estimating the Shapley values.
KernelSHAPIQ: The KernelSHAPIQapproximator for estimating the Shapley interaction index (SII) and the k-Shapley interaction index (k-SII).
Initialize the RegressionFBII approximator.
- Parameters:
n (
int) β The number of players.max_order (
int) β The interaction order of the approximation. Defaults to2.pairing_trick (
bool) β IfTrue, the pairing trick is applied to the sampling procedure. Defaults toFalse.sampling_weights (
ndarray|None) β An optional array of weights for the sampling procedure. The weights must be of shape(n + 1,)and are used to determine the probability of sampling a coalition of a certain size. Defaults toNone.random_state (
int|None) β The random state of the estimator. Defaults toNone.**kwargs (
Any) β Additional keyword arguments (not used, only for compatibility).