I've fixed the problem for ceteris_paribus() with custom predict_function. It was working only when the name of the second parameter of predict_function was 'newdata'.
Code below was returning an error:
Error in predict_function(model, newdata = new_data) :
unused argument (newdata = new_data)
I've fixed the problem for
ceteris_paribus()
with custom predict_function. It was working only when the name of the second parameter of predict_function was 'newdata'.Code below was returning an error: Error in predict_function(model, newdata = new_data) : unused argument (newdata = new_data)