r - boosted regression trees train error in caret package -
i trying use code below train boosted regression tree cv of auc. getting message:
error in { : task 1 failed - "subscript out of bounds"
if didn't specify distribution="gaussian", not receive error message.
any ideal fix problem? thank much.
gbmgrid <- expand.grid(interaction.depth=(3:6), n.trees=(1:40)*100, shrinkage=.01) gbmgrid$n.minobsinnode = rep(10,nrow(gbmgrid)) head(gbmgrid) bootcontrol <- traincontrol(method='cv',classprobs = true,number=3,summaryfunction = twoclasssummary) gmbfit<- caret::train(x,y, distribution="gaussian", method = "gbm", verbose = f, trcontrol = bootcontrol, bag.fraction=0.5, metric="roc", tunegrid=gbmgrid)
Comments
Post a Comment