You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
First of all, thank you for the development of this project.
I've been (trying to) use it to extract feature importance of LSTM and Transformer models, but I've stumbled on an assert clause that stops the process.
More specifically:
I have developed these models using PyTorch, and have developed a model wrapper to adapt them to your framework;
My dataset consists on 222 instances of sequence length 4, where each element of this sequence contains 6 features.
When no features are considered important, it all goes smoothly, displaying on the terminal: No important features identified, skipping window feature importance window visualization.
However, when the framework detects important features, it hits an assert clause, this one:
perturbed_slice.base is None, where, according to the assert clause, it should be, as it indicates, X_hat.
For that reason, the process stops.
Following the guidelines you provide at Contributions:
I am running Manjaro Linux 22.1.0;
I think no local details are necessary, as ...
... I was able to reproduce the bug without using my data or my models.
To try to find out the issue (it could reside on my data, models or model wrapper), I've tried to replicate the problem solely with the functions you provide:
Changing the value of fraction_relevant_features toggles between working and not working:
fraction_relevant_features = 0.1 makes the analyser detect no important features, and for that reason concludes successfully;
fraction_relevant_features = 0.9 makes the program hit the assertclause.
PS: To check whether that would be the single problem in the process, I have tried commenting that assert clause. The process then finishes, but displaying a «deformed» plot .
However the results may not be correct ones (the assert was there probably for a reason...)
It would be nice if the plot size was adjusted accordingly, or to be set beforehand, to avoid this.
Thanks!
The text was updated successfully, but these errors were encountered:
Hello!
First of all, thank you for the development of this project.
I've been (trying to) use it to extract feature importance of LSTM and Transformer models, but I've stumbled on an
assert
clause that stops the process.More specifically:
When no features are considered important, it all goes smoothly, displaying on the terminal:
No important features identified, skipping window feature importance window visualization.
However, when the framework detects important features, it hits an assert clause, this one:
anamod/anamod/core/perturbations.py
Line 102 in 556e247
perturbed_slice.base
isNone
, where, according to theassert
clause, it should be, as it indicates,X_hat
.For that reason, the process stops.
Following the guidelines you provide at Contributions:
To try to find out the issue (it could reside on my data, models or model wrapper), I've tried to replicate the problem solely with the functions you provide:
Changing the value of
fraction_relevant_features
toggles between working and not working:fraction_relevant_features = 0.1
makes the analyser detect no important features, and for that reason concludes successfully;fraction_relevant_features = 0.9
makes the program hit theassert
clause.PS: To check whether that would be the single problem in the process, I have tried commenting that
assert
clause. The process then finishes, but displaying a «deformed» plot .However the results may not be correct ones (the assert was there probably for a reason...)
It would be nice if the plot size was adjusted accordingly, or to be set beforehand, to avoid this.
Thanks!
The text was updated successfully, but these errors were encountered: