API¶
This is the full API documentation of the sharp package.
|
The ShaRP (Shapley for Rankings and Preferences) class provides a novel framework for explaining the contributions of features to various aspects of ranked outcomes. |
sharp.qoi
¶
Quantities of interest.
|
A general QoI, suitable for models/methods that output label predictions or scores. |
|
Implements equation 4 from [R152a90246262-1]. |
|
Implements equation 3 from [R383c5c9d41a2-1]. |
|
Rank specific QoI. |
|
A general, ranking-oriented QoI, similar to |
|
Rank-specific QoI. |
|
Get a quantity of interest from string. |
Get the names of all available quantities of interest. |
sharp.visualization
¶
Visualization functions based on matplotlib.
|
sharp.utils
¶
Utility functions used to check variable types, convert scores to rankings, etc.
Retrieve feature names from X. |
|
|
Converts X and y inputs to numpy arrays. |
|
If None, return a default function. |
|
If None, return a default function. |
|
Converts an array with scores to a ranking. |