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
0
votes
3 answers

LIME ML Interpreter mode Classification or Regression for Isolation Forest (Anomaly Detection)

i am trying to find anomalies in my dataset of 1000+ documents. I'm using LIME ML Interpreter to be able to explain the model (Isolation Forest) predictions. In one parameter "mode" i am able to choose between Classification and Regression. I do not…
Skye
  • 57
  • 1
  • 7
0
votes
1 answer

'TabularLIME' is not defined Azure DataBricks

I have just started working on Azure Data bricks. I am facing some error while running a already created Python NoteBook. Here is the code: import mmlspark from mmlspark import * lime = TabularLIME()\ .setModel(randomForestModel)\ …
AddyProg
  • 2,960
  • 13
  • 59
  • 110
0
votes
0 answers

Problems with my code and lime package in R

I'm trying to use the "lime" package to interpret a Random Forest model with the "import85" dataset, but when I run the explain command it returns an error: library(lime) library(caret) data("imports85", package = "randomForest") imp85 <-…
0
votes
1 answer

Shiny plotOutput with plot_features from the lime package produces nothing

I am attempting to use shiny to produce a risk calculator using a random forest model I trained in R ("rffit.rda"). similar to this web app calculator https://sorg-apps.shinyapps.io/thaopioid/ But the prediction panel in my app gives me no output. I…
yl637
  • 11
  • 2
0
votes
1 answer

Is there a way to render SHAP or LIME output from Flask to React?

I am deploying a machine learning model written in Python on a React JS project, using Flask. However, it is required to display LIME or SHAP output. Has anyone got any ideas in how to render html or js output from Flask to React and then display…
user9446594
0
votes
1 answer

Lime Explainer: ValueError: training data did not have the following fields

I'm attempting to gather ID level drivers from my XGBoost classification model using LIME and I'm running into some odd errors. I'm using this link as a reference. Here is the overall code that I'm using: explainer =…
madsthaks
  • 377
  • 1
  • 6
  • 16
0
votes
1 answer

Keras explainer package like eli5, LIME, shapely for standard (non-image) classification?

I've been using XGBoost to predict student retention, and have been using eli5 to provide explanations for the individual predictions. For a few different reasons I decided to give deep learning a try, and it performed surprisingly well on the data.…
L Xandor
  • 1,659
  • 4
  • 24
  • 48
0
votes
1 answer

LimeTabularExplainer function from lime.lime_tabular doesn't work: ValueError: Domain error in arguments

I am trying to create LimeTabularExplainer which I remember worked earlier but doesn't now. My trials below thought would work but didn't work. Please help, thanks in advance! I tried checking if feature_names is list or not and it is. Tried…
Bharat Ram Ammu
  • 174
  • 2
  • 16
0
votes
1 answer

Why lime tabular method generates type errors with data frames?

I'm traying to use LIME to explain the results of a gradient boost model. This is the data I have: And the code I'm using: explainer = lime.lime_tabular.LimeTabularExplainer(training_data = sample, …
Luis Ramon Ramirez Rodriguez
  • 9,591
  • 27
  • 102
  • 181
0
votes
1 answer

res = cache.get(item) TypeError: unhashable type (the error which i am getting is after running the lime explainer))

The code is as follows: # coding=utf-8 from __future__ import print_function import pandas as pd from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import…
Manju
  • 1
  • 1
0
votes
3 answers

Corona "Attempt to remove an object that has already been removed"

I'm working on a simple "breakout" game and I have problem reloading a map. for example: if I start with level1, break some bricks and lose, than I'm loading the same map again. next time that the ball collides with the same brick I "touched"…
Bnhjhvbq7
  • 169
  • 3
  • 13
1 2 3 4 5 6
7