Calculates the SHAP values for a given feyn.Model with your provided instances
method KernelShap.SHAP
defSHAP(
self,
instances
)
Calculates the SHAP values for the provided instances
Arguments:
instances {dict(str, np.array) or pd.DataFrame} -- One or more instances to get SHAP values for.
Returns:
[np.array] -- A numpy array (matrix) containing feature importances for your instances