SeldonIO / alibi

Algorithms for explaining machine learning models
https://docs.seldon.io/projects/alibi/en/stable/
Other
2.39k stars 249 forks source link

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

Open HevOHel opened 10 months ago

HevOHel commented 10 months ago

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?