Error message "int() must be a string"

at line 85, in
(xx, yy, prediction_grid) = make_prediction_grid(predictors, outcomes, limits, h, k)