Posts by Andre Calais Salles • 11 points
2 posts
-
1
votes1
answer37
viewsA: varImp does not recognize gradient boosting model produced by Ret when I apply weights to target
Solution found in stackoverflow in English. Follow example code: set.seed(123) basex <- Arrests model_weights <- ifelse(basex$released == "Yes", table(basex$released)[1]/nrow(basex),…
-
-1
votes1
answer37
viewsQ: varImp does not recognize gradient boosting model produced by Ret when I apply weights to target
I produced a gradient boosting model with the package caret and applied weights to the target variable. When I call the function varImp in the model it returns the error: Error in…