Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shapr on xgboost classifier: group must be NULL or a list #373

Closed
sugarjo opened this issue Jan 29, 2024 · 1 comment
Closed

shapr on xgboost classifier: group must be NULL or a list #373

sugarjo opened this issue Jan 29, 2024 · 1 comment

Comments

@sugarjo
Copy link

sugarjo commented Jan 29, 2024

Hi Martin,
I tried to use shapr with the python wrapper on my data. I have trained xgboost classifiers. I tried to follow the xgboost-example, but experienced some issues which might be related?

  • I receive a warning: "Note: Feature classes extracted from the model contains NA. Assuming feature classes from the data are correct."
    How should I deal with this? I haven't any groups of features. Are feature classes and groups related? (see below)

My codes run into an error: "Error in feature_combinations(m = n_features0, exact = exact, n_combinations = n_combinations, :
Due to computational complexity, we recommend setting n_combinations = 10 000"

I set n_combinations=10000 and rerun the code:

  • I receive an error: "RRuntimeError: Error in get_parameters(approach = approach, prediction_zero = prediction_zero, : group must be NULL or a list"
    Is this related to the "NA feature classes"-warning above and how could I deal with this?
    I haven't defined any groups of features.

Thanks,
Jørgen

@martinju
Copy link
Member

Hi

The first is just a warning/note, nothing to worry about. For the second issue is not related and it is hard to know without seeing your code, but if you tried to run the python version with groping, there was a bug there which was just fixed and merged into master #375
Please reinstall the latest version of shaprpy, and see if it solves your problem.

I am closing this now. Please reopen and provide a minimal working example if the problem persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants