facet.inspection.ShapPlotData#
- class facet.inspection.ShapPlotData(shap_values, sample)[source]#
Data for use in SHAP plots provided by the shap package.
- Parameters
Attribute summary
Matrix of feature values (number of observations by number of features).
Matrix of SHAP values (number of observations by number of features) or list of shap value matrices for multi-output models.
Series of target values (number of observations) or matrix of target values for multi-output models (number of observations by number of outputs).
Definitions
- property features: pandas.DataFrame#
Matrix of feature values (number of observations by number of features).
- Return type
- property shap_values: Union[numpy.ndarray[Any, numpy.dtype[numpy.float64]], List[numpy.ndarray[Any, numpy.dtype[numpy.float64]]]]#
Matrix of SHAP values (number of observations by number of features) or list of shap value matrices for multi-output models.
- property target: Union[pandas.Series, pandas.DataFrame]#
Series of target values (number of observations) or matrix of target values for multi-output models (number of observations by number of outputs).