question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Explaining regression for images

See original GitHub issue

Hello,

tl;dr I would like to use LIME for explaining regression for images.

I’m doing a self-driving car project where my model is predicting the angle of the wheels needed for the car to take a turn (for each frame independently, no history taken into account). Every once in a while, the model decides to inexplicably get off the road, and I asked myself: “Can LIME help me understand what made it do that?”

In your “Roadmap” section of the contributing guidelines, point 4., I found:

Thinking through what is needed to use LIME in regression problems. An obvious problem is that features with different scales make it really hard to interpret.

On the one hand, I’ve noticed there’s a “Using lime for regression” notebook (for LimeTabularExplainer), but on the other, the LimeImageExplainer seems to work with classification only (at least judging by the API, I haven’t gone through the details yet).

How big a problem do you think this is? What would need to be done?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ishita-gupta0810commented, Jul 16, 2020

I had the same doubt and what I found was that it does work directly by passing the regressor, just make sure use explanation.top_labels[0] as there is only one label. Though as mentioned in this thread, the explanation might not be as meaningful as in the case of classification

1reaction
NexusHerocommented, Feb 6, 2019

What do you mean by passing a regressor?

I just predict facial keypoints for images and i try this:

my model has the input shape (96,96,1).

explanation = explainer.explain_instance(faces[0], model.predict, top_labels=5, hide_color=0, num_samples=1000)

Would this work with “model.predict” or i have to pass somthing else?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Regression Analysis in One Picture - DataScienceCentral.com
The basic idea behind regression analysis is to take a set of data and use that data to make predictions. A useful first...
Read more >
Fastai — Image Regression — Age Prediction based on Image
On the other hand, Image Regression task such as predicting age of the person based on the image is relatively difficult task to...
Read more >
Image regression - John Lindsay
This tool performs a bivariate linear regression analysis on two input raster images. The first image is considered to be the independent variable...
Read more >
Feature Regression for Multimodal Image Analysis
In this paper, we analyze the relationship between the corresponding descriptors computed from multimodal im- ages with focus on visual and infrared images....
Read more >
Regression Method - Classifier || Digital Image Processing
Regression Method | Analysis | Classifier || Digital Image ProcessingWe know that a classifier is about assigning the label to an instance.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found