-
Notifications
You must be signed in to change notification settings - Fork 111
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
Implementing tf-explain for regression using CNN #145
Comments
+1 |
2 similar comments
+1 |
+1 |
I've found some success in implementing a regression model for a univariate time series model. The grad-cam model showed that a certain region was important. I shortened the input sequence to exclude that region and found that my model's performance got significantly worse. Yes this did require retraining of the model and you can argue that it changes the model and thus you can't make comparisons. But then I added a longer input sequence, retrained model again and found that the grad cam highlighted the same features/region as the original model and didn't find important features in the longer sequence. Consequently, the model accuracy did not increase with the added length to the sequence. Conclusion - By no means was this rigorously proven, but the grad-cam for time series that was implemented looks like it reflects feature importance. |
Most of the functions such as GradCAM ,smoothGrad and others require us to provide a class index as well. Incase we use a CNN model with a linear activation layer with 1 node, so as to implement a regression model. How would we use tf-explain for the visualisation ?
The text was updated successfully, but these errors were encountered: