Trusted-AI / Trusted-AI/AIX360

LIME explain_instance documentation discrepancy

Open
#45 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.8k
Forks
327
Avg merge
1h 13m
Merged PRs (30d)
1

Description

lime-ml.readthedocs says that explain_instance for tabular lime expects a 1D-array as input, but when running the code with 1D-array the following error message occurs:
ValueError: Expected 2D array, got 1D array instead:
[1, 2, 3, 4, 5]

Does the function expect 2D or 1D- arrays?

Edit:
Should probably mention that I get the same error message when passing 2D arrays (for example [[1,2,3,4,5]]). The problem probably lies elsewhere, but the error message is not very helpful.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked lime.lime_tabular documentation and reproduce explain_instance using the reported 1D and 2D arrays. Trace the resulting ValueError to determine the expected input shape and whether the documentation or error message is wrong; done means the behavior and usage are clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
machine-learning, python
Domain
documentation, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.