Skip to content

Tutorial for Shapley Value Sampling likely needs update #1486

Open
@ayan-cpath

Description

📚 Documentation

In the tutorials for perturbation based attribution for HuggingFace CasualLMs, in the block 12 that demonstrates how to use SHAP values, the parameter skip_tokens is being passed:

Image

Running that code gives the error - TypeError: ShapleyValues.attribute() got an unexpected keyword argument 'skip_tokens':

Image

Neither the API doc nor the source has the attribute method has parameter skip_tokens, likely removed in one of the more current versions of the package.

Image

Thanks for the great package and documentation.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions