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
ProtoDash: local variable 'newinnerProduct' referenced before assignment #90
Comments
Hi I would really appreciate some feedback please. I am using this library for my disseration and currently stuck due to this issue. Your help will be very much appreciated. |
I doubt you can use prototype for single instance. It is a way of sampling the data. Does it make sense to sample single instance ? |
It should be possible, because IBM's Arya et al. state in their paper that ProtoDash can be used to explain a single test sample using samples from the train set (https://arxiv.org/pdf/1909.03012.pdf).
|
So you can explain a single instance but the dataset you use to explain it has to have multiple instances. You cannot have both X and Y have cardinality 1. |
So then try swapping the arguments. The thing to be explained is to come first. Also check they have the same dimensionality. If this doesnt work try looking at usage in the example tutorial notebooks. |
Awesome! Thanks. |
I am using the HELOC Dataset and trying to explain a single test instance using prototypes from my training subset using below code:
explainer = ProtodashExplainer()
(W, S, _) = explainer.explain(dfTrain.to_numpy(), dfTest.iloc[0:1,:].to_numpy(), m=2)
However, I am getting below error:
Is this intentional? Please help.
Thank you
The text was updated successfully, but these errors were encountered: