Skip to content

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

@HevOHel

Description

@HevOHel

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions