ModelOriented / ModelOriented/DALEX

Error in predict_parts_shap_aggregated ()

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

Nobody has claimed this yet.

invalid ❕ question ❔ R 🐳
Dominant language
Python
Stars
1.5k
Forks
172
PR merge metrics
No merged PRs in 30d

Description

Hello,
I am trying predict_parts_shap_aggregated () to predict the important variable features of a random forest model.
However, I am getting this error -
Error in .rowNamesDF<-(x, value = value) :
duplicate 'row.names' are not allowed
In addition: Warning message:
non-unique values when setting 'row.names'

But there is no duplicate names.

And when i am trying the predict_parts_shap (), it works perfectly fine.

Could you please suggest the probable solution of this error.

Thanking you.
Dibakar Roy

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 by reproducing the error in predict_parts_shap_aggregated() with the reported random forest model, then compare its inputs and row-name handling with predict_parts_shap(), which works. Done means identifying and correcting the cause of duplicate row names so the aggregated prediction completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.