Class SampledShapleyAttribution (1.36.4)

SampledShapleyAttribution(mapping=None, *, ignore_unknown_fields=False, **kwargs)

An attribution method that approximates Shapley values for features that contribute to the label being predicted. A sampling strategy is used to approximate the value rather than considering all subsets of features.

Attribute

NameDescription
path_count int
Required. The number of feature permutations to consider when approximating the Shapley values. Valid range of its value is [1, 50], inclusively.

Methods

SampledShapleyAttribution

SampledShapleyAttribution(mapping=None, *, ignore_unknown_fields=False, **kwargs)

An attribution method that approximates Shapley values for features that contribute to the label being predicted. A sampling strategy is used to approximate the value rather than considering all subsets of features.