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

in lime_tabular, the input argument feature_names cannot be None #801

Open
SarahAlidoost opened this issue Jun 14, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@SarahAlidoost
Copy link
Contributor

in lime_tabular, None is set as a default value for the input argument feature_names, see here. Later, the variable self.num_features is calculated as len(feature_names) which does not work on NoneType data, see here. Note in lime, self.num_features is not optional.

The same issue for the input argument class_names with the default value None.

For both input arguments, the default values should not be None or the None case should be handled inside the function.

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

1 participant