Skip to content

Commit

Permalink
Correct data type in docstring for max_display in waterfall plot (#3627)
Browse files Browse the repository at this point in the history
Co-authored-by: connortann <71127464+connortann@users.noreply.github.com>
  • Loading branch information
bewygs and connortann committed Apr 30, 2024
1 parent 6f5ffd5 commit 3892619
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions shap/plots/_waterfall.py
Expand Up @@ -30,8 +30,8 @@ def waterfall(shap_values, max_display=10, show=True):
shap_values : Explanation
A one-dimensional :class:`.Explanation` object that contains the feature values and SHAP values to plot.
max_display : str
The maximum number of features to plot (default is 10).
max_display : int
The maximum number of features to display (default is 10).
show : bool
Whether ``matplotlib.pyplot.show()`` is called before returning.
Expand Down Expand Up @@ -343,8 +343,8 @@ def waterfall_legacy(expected_value, shap_values=None, features=None, feature_na
feature_names : list
List of feature names (# features).
max_display : str
The maximum number of features to plot.
max_display : int
The maximum number of features to display (default is 10).
show : bool
Whether matplotlib.pyplot.show() is called before returning. Setting this to False allows the plot
Expand Down

0 comments on commit 3892619

Please sign in to comment.