evalml.model_understanding.
partial_dependence
Calculates partial dependence.
pipeline (PipelineBase or subclass) – Fitted pipeline
X (ww.DataTable, pd.DataFrame, np.ndarray) – The input data used to generate a grid of values for feature where partial dependence will be calculated at
feature (int, string) – The target features for which to create the partial dependence plot for. If feature is an int, it must be the index of the feature to use. If feature is a string, it must be a valid column name in X.
over all samples of X and the values used to calculate those predictions. The dataframe will contain two columns: “feature_values” (grid points at which the partial dependence was calculated) and “partial_dependence” (the partial dependence at that feature value). For classification problems, there will be a third column called “class_label” (the class label for which the partial dependence was calculated). For binary classification, the partial dependence is only calculated for the “positive” class.
pd.DataFrame