for (i in 1:num_trials){
params=my_params[i,]
k=cvTuning(randomForest,campaign~.-y,
data = bf_train1,
tunning = params,
folds = cvFolds(nrow(bf_train), K = 10, type = "random"),
seed = 2
)
score.this=k$cv[,2]
if(score.this<myerror){
myerror=score.this
best_params=params
}
}
Hi!
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:
1 Like
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.