Explain Model Action Set
Frequency and Weight Variables
The freq parameter is an optional parameter that names a numeric variable that provides the frequency of each observation in the reference data set. If you do not specify a frequency variable, then the shapleyExplainer action assumes that the frequency of all observations is 1. The shapleyExplainer action expects nonnegative integer frequency values. If the frequency of an observation is not an integer, the action truncates the frequency value to the largest integer that is smaller than or equal to the value. The action treats negative and missing frequencies as 0.
The weight parameter is an optional parameter that names a numeric variable that provides the weight of each observation in the reference data set. If you do not specify a weight variable, then the shapleyExplainer action assumes that the weight of all observations is 1. The shapleyExplainer action expects nonnegative weight values. The action treats negative and missing weights as 0.
The shapleyExplainer action uses both the frequency and weight variables in the reference data set to calculate the expectations that are used in the Shapley value approximation. The shapleyExplainer action does not use the frequency or weight variable from the query data even if the variables exist. The query data are always treated as if they have a frequency and weight of 1.