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

[BUG] InvalidParameterError: The 'estimator' parameter of permutation_importance must be an object implementing 'fit'. Got None instead. #100

Open
kooooshhhh opened this issue Oct 14, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@kooooshhhh
Copy link

Description

Getting this error when implementing the code for "Multi-Model Comparison" Example in the readme file when implementing this on my own dataset.

Steps to Reproduce

Run the code "Multi-Model Comparison" Example in the readme file by inputing your own csv

Expected Behavior

To provide a pdf report output.

Actual Behavior

InvalidParameterError: The 'estimator' parameter of permutation_importance must be an object implementing 'fit'. Got None instead.

The issue is arising on the results = xai.analyze() function.
I think the _calculate_feature_importance function should be checked upon.

@kooooshhhh kooooshhhh added the bug Something isn't working label Oct 14, 2024
@kooooshhhh
Copy link
Author

This works when implementing this with another dataset (diabetes prediction) the report is generated

@ombhojane
Copy link
Owner

you want to fix this issue? @kooooshhhh

@kooooshhhh
Copy link
Author

Sure, but i think theres a problem with the dataset itself. Thus will need to make the preprocessing pipeline more robust catering to all types of structured datasets. I have a few ideas and code to overcome this issue, would like to discuss this with you

@ombhojane
Copy link
Owner

yeah sure

@kooooshhhh
Copy link
Author

can u provide me with your email so i could reach out to you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants