Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query about the "z" in the fastshap algorithm (7) #53

Open
nicholasjhorton opened this issue Oct 26, 2021 · 1 comment
Open

query about the "z" in the fastshap algorithm (7) #53

nicholasjhorton opened this issue Oct 26, 2021 · 1 comment

Comments

@nicholasjhorton
Copy link

Issue relates to printed book and electronic version 2020-02-01

Section 16.8.1, Algorithm 7: https://bradleyboehmke.github.io/HOML/iml.html#shapley-values

      | b1 = x, but all the features in perm that appear after 
      |      feature xj get their values swapped with the 
      |      corresponding values in z.

What is z? It doesn't seem to be defined in the algorithm or the section.

PS Kudos for an excellent book!

@bgreenwell
Copy link
Member

bgreenwell commented Oct 26, 2021

Hi @nicholasjhorton, good catch. Here, z corresponds to an instance drawn at random from the learning sample (or suitable background data set). The reference to this algorithm can be found here; in the image, z is equivalent to w. Will keep this open as a note to fix in the next print/version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants