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
Hi,
I am using LIME to explain an RNN based forecasting model, so I am using the RecurrentTabularExplainer. My data is continuous, and I am using regression mode as that matches my prediction type. Because my data has very different scales per feature, I must normalize it before training. When using this to generate descriptions, I also get normalized values in my explanation, which is incredibly unclear.
How can I invert this normalization? I cannot find anything about this, except for many other people asking this question on various forums. This seems like a strong requirement for an explanation technique. Another issue is that the min and max of the bar on the left seems to be completely random. Sometimes the range is less than 1 between min and max, and I cannot find what this bar truly is meant to be.
Kind regards,
Stijn
The text was updated successfully, but these errors were encountered:
@StijnBerendse Not sure if this is the accurate way as I also searched for it a lot and didn't find any answer. But I'm doing it this way:
Save the state of your dataset before using scaling/ normalization
Then write a function to be used as predict_fn which not just provides the prediction, but also does the necessary preprocessing steps including the scaling and the later steps.
Pass that function as your predict_fn in LimeTabularExplainer instance
This will provide you the explanations according to your unscaled values. I have removed some lines from my code for privacy, but you get the idea.
Hi,
I am using LIME to explain an RNN based forecasting model, so I am using the RecurrentTabularExplainer. My data is continuous, and I am using regression mode as that matches my prediction type. Because my data has very different scales per feature, I must normalize it before training. When using this to generate descriptions, I also get normalized values in my explanation, which is incredibly unclear.
How can I invert this normalization? I cannot find anything about this, except for many other people asking this question on various forums. This seems like a strong requirement for an explanation technique. Another issue is that the min and max of the bar on the left seems to be completely random. Sometimes the range is less than 1 between min and max, and I cannot find what this bar truly is meant to be.
Kind regards,
Stijn
The text was updated successfully, but these errors were encountered: