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

When use explainer.fit(X_train),it went into a loop of error #985

Open
HevOHel opened this issue Nov 24, 2023 · 0 comments
Open

When use explainer.fit(X_train),it went into a loop of error #985

HevOHel opened this issue Nov 24, 2023 · 0 comments

Comments

@HevOHel
Copy link

HevOHel commented Nov 24, 2023

I'm trying to use KernelShap, but it comes to an error loop.
When I fit dataset with torch.tensor type, it shows TypeError: Type <class 'torch.Tensor'> is not supported for background data!
but when I change it into numpy.array, it says AttributeError: 'numpy.ndarray' object has no attribute 'to'
Is there anyone who has met the same problem as me?

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

1 participant