when doing binary classification with type = "prob" in partial_dependence we should drop one factor level, (how we know which idk, an option?), change the prob attribute as FALSE and assign the column for the other level the name of the target variable. This will get handled like regression in plot_pd.
when doing binary classification with type = "prob" in
partial_dependence
we should drop one factor level, (how we know which idk, an option?), change theprob
attribute asFALSE
and assign the column for the other level the name of the target variable. This will get handled like regression inplot_pd
.