Skip to main content
. Author manuscript; available in PMC: 2021 Sep 15.
Published in final edited form as: Proc Mach Learn Res. 2020 Jul;119:7762–7771.

Algorithm 1.

TGT: Calculating GCEs with a Reference Group. Note that, because λ is applied to all of the explanations, we cannot tune it to guarantee that each explanation is exactly k-sparse.

Input: Model: r
  Group Means: x¯i(feature space) and r¯i(representation space) for i = 0, . . . , l − 1
  l1 Regularization Weight: λ
  Learning Rate: α
Initialize: δ1, . . . , δl−1 to vectors of 0
while not converged do
 Sample ij from {0, . . . , l − 1}
 Construct tij (δij) using Algorithm 2
 Calculate objective: υ = loss(δij) using Equation 9
 Update the components of δij using Algorithm 3
end while
Return: δ1, . . . , δl−1