Questions tagged [lime]

LIME (local interpretable model-agnostic explanations) is an explainability method used to inspect machine learning models. Include a tag for Python, R, etc. depending on the LIME implementation.

LIME (local interpretable model-agnostic explanations) is an explainability method used to inspect machine learning models and debug their predictions. It was originally proposed in “Why Should I Trust You?”: Explaining the Predictions of Any Classifier (Ribeiro et al., NAACL 2016) as a way to explain how models were making predictions in natural language processing tasks. Since then, people implemented the approach in several packages, and the technique inspired later techniques for "explainable machine learning," such as the SHAP approach.

Related Concepts

LIME Implementations

Implementations of this approach exist in several software packages.

Python

R

Further Reading

101 questions
2
votes
1 answer

Is case number equivalent to data row number in Lime?

Just discovered the Lime package in R and still trying to fully understand the package. I'm stumped though the visualization using 'plot_features' Please excuse my naivety. My question is this, is the case number for each row sequential? In other…
Mikee
  • 783
  • 1
  • 6
  • 18
2
votes
0 answers

How to resolve Type error - Lime interpret CNN results

I am using keras with Tesorflow backend (using python 2.7) and I built two dense layer on top of pretrained vgg16 model with four classes. And I get a pretty decent results on my validation set. Now I want to use lime to interpret my result. I…
Hamid K
  • 983
  • 1
  • 18
  • 40
2
votes
0 answers

Feature/variable importance for Keras model using Lime

I have a two-class classification Keras model with multi-type input data where I predict class A and B based on 1 continuous and 3 categorical input data. In the below dummy example, continuous1, categorical1 and categorical2 are 1D tensors the…
jO.
  • 3,384
  • 7
  • 28
  • 38
2
votes
0 answers

Parallelizing Lime in data bricks

I am trying to parallelize lime framework on databricks , but not able to do so. I dont know how , how can i send every observation on different workers, if anyone could help. Ex plainer is coming from the lime framework. Code below : import…
LK Tyagi
  • 21
  • 3
2
votes
1 answer

R: problems applying LIME to quanteda text model

it's a modified version of my previous question: I'm trying to run LIME on my quanteda text model that feeds off Trump & Clinton tweets data. I run it following an example given by Thomas Pedersen in his Understanding LIME and useuful SO answer…
Kasia Kulma
  • 1,683
  • 1
  • 14
  • 39
2
votes
1 answer

'lime' package in R intuition

I am going through the example (below): which is a binary classification example. I want to make sure some of my intuition is correct here as there is not much documentation regarding the lime package due to it being relatively new. Output of the…
user113156
  • 6,761
  • 5
  • 35
  • 81
2
votes
1 answer

LIME (with h2o) explanation error

dI'm new to R and ML but have a focused question that I am trying to answer. I'm using my own data but following Matt Dancho's example here to predict attrition: http://www.business-science.io/business/2017/09/18/hr_employee_attrition.html I have…
Stacy S.
  • 21
  • 2
2
votes
0 answers

Combing lime and h2o in R Error when running explain()

There is an error at the final stage of this analysis. When running explain() function on an h2o model, I get the following error: Error: All permutations have no similarity to the original observation. Try setting bin_continuous to TRUE and/or…
YK95
  • 21
  • 1
2
votes
1 answer

lime-object.lua: 495 bad argument #1 'newLine' (number expected, got string)

I'm stuck with the Lime tutorial "08 – Complex Physics Objects" http://lime.outlawgametools.com/tutorials/08-complex-physics-objects/ everything works fine until i set the “pointA”, “pointB”, “pointC” than i get the following error in…
Bnhjhvbq7
  • 169
  • 3
  • 13
1
vote
1 answer

Lime for Corona SDK - Camera focus on layer

Is there any solution for setting up focus on layer in Lime framework. I would like to use this on game called "keepie uppie" with scrolling background (camera). When you hit the ball the entire frame together with a ball and tennis racket moves…
Mark
  • 159
  • 1
  • 10
1
vote
0 answers

Why using lime with BERT giving memory error

I am using LIME to visualize my finetuned BERT model. I don't know why it is taking too much memory and killed by the system. Here is my code: tokenizer = BertTokenizer.from_pretrained('bert-base-uncased') model =…
1
vote
0 answers

Not able to convert images saved in html format to png format

I am generating Lime plots and saving them into .html format which are later converted into .png for further processing. Saving Lime plots directly into .png format are saving the blank png files. I finally need output of LIME plot in png format so…
1
vote
1 answer

How to get original string values of encoded categorical columns in Lime graph

I am trying to work on local explainability using Lime graph. Before building the model, I encode some of the categorical variables. Sample Data and code: import pandas as pd import numpy as np import matplotlib.pyplot as plt from…
Karthik S
  • 11,348
  • 2
  • 11
  • 25
1
vote
0 answers

Errors in plots from R package LIME when using text to predict outcome with tidymodels

I am trying to use the lime package to explain the results from a lasso model fitted with tidymodels that uses text to predict the outcome. I have done my best to code this up, but there are two problems: plot_features(explanation) does not produce…
captain
  • 543
  • 1
  • 3
  • 20
1
vote
0 answers

How do I put a camera on a separate window without lag?

The current way I'm doing it works, but is really heavy on performance, and I'd like to reduce the lag as much as possible. Basically I'm copying the pixels of said FlxCamera onto an FlxSprite, and then I'm rendering that FlxSprite's pixels to a…