Skip to content
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

Open
ishita-gupta0810 opened this issue Jul 13, 2020 · 4 comments
Open

Implementing tf-explain for regression using CNN #145

ishita-gupta0810 opened this issue Jul 13, 2020 · 4 comments

Comments

@ishita-gupta0810
Copy link

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 ?

@danvargg
Copy link

+1

2 similar comments
@Ram-WD
Copy link

Ram-WD commented Sep 13, 2021

+1

@showkeyjar
Copy link

+1

@Corne173
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants