Issue Description
The function fill_counts() in shap/plots/_utils.py has an incomplete docstring
that was cut off mid-sentence:
def fill_counts(partition_tree):
"""This updates the"""
The sentence is never finished, so the function has effectively no documentation.
The function fills the fourth column of the partition tree matrix with the total
leaf count for each internal cluster node this should be stated in the docstring.
Minimal Reproducible Example
import shap.plots._utils as u
help(u.fill_counts)
# Output:
# fill_counts(partition_tree)
# This updates the
#
# (truncated — reader has no idea what is being updated or why)
Traceback
No exception. This is a documentation quality issue.
Expected Behavior
help(u.fill_counts) should display a complete description of what the function
does e.g. "This fills the fourth column of the partition tree matrix with the
leaf count for each cluster."
Bug report checklist
Installed Versions
import shap; shap.show_versions()
Issue Description
The function fill_counts() in shap/plots/_utils.py has an incomplete docstring
that was cut off mid-sentence:
The sentence is never finished, so the function has effectively no documentation.
The function fills the fourth column of the partition tree matrix with the total
leaf count for each internal cluster node this should be stated in the docstring.
Minimal Reproducible Example
Traceback
Expected Behavior
help(u.fill_counts) should display a complete description of what the function
does e.g. "This fills the fourth column of the partition tree matrix with the
leaf count for each cluster."
Bug report checklist
Installed Versions
import shap; shap.show_versions()