Skip to content

KernelSHAP argmax prediction for binary classifiers with one output #225

Open
@jklaise

Description

@jklaise

Currently KernelSHAP computes the classification label using an argmax:

argmax_pred = np.argmax(np.atleast_2d(raw_predictions), axis=1)

However, some binary classification models only output one scalar (e.g. score or probability of first class) in which case this would not work. The solution is already in the TreeSHAP PR (#206) so once that is merged we can update KernelSHAP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions