I use the pdp package to execute partial dependence for linear regression, and it works flawlessly without any warnings. However, when I switch to the classification(logistic) label for xgboost. I received partial dependence warning messages stating that the partial reliance is based on linear as follows. May I inquire whether the code has to be updated in any way to precisely feed the categorization object using the xgboost package so that the partial dependence is correct as said here? Or I can disregard the warning notice because it is already right. I know randomforest is simple with no warning warnings.