Skip to content

Commit

Permalink
update the comments, documentations and tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwenz committed Jul 11, 2022
1 parent 4727cf2 commit 3a9edb3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file modified docs/_static/demo_nlp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_static/demo_ts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_static/demo_vision.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions omnixai/explainers/tabular/agnostic/pdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def _global_explain(self, features) -> PDPExplanation:
f"The dataset doesn't have feature `{f}`."
feature_columns = features
column_index = {f: i for i, f in enumerate(self.feature_columns)}
if len(features) > 30:
warnings.warn(f"Too many features ({len(features)} > 30) for PDP to process, "
if len(feature_columns) > 20:
warnings.warn(f"Too many features ({len(feature_columns)} > 20) for PDP to process, "
f"it will take a while to finish. It is better to choose a subset"
f"of features to analyze by setting parameter `features`.")

Expand Down

0 comments on commit 3a9edb3

Please sign in to comment.