Is it possible to tune a random forest ( cforest
) with a multivariate response variable using caret
? eg
mtry_grid <- data.frame(mtry = seq(5,50,5))
train_mtry_class <- train(Class+PRE_POST~., data=rf_data[,-c(1,2)],
method='cforest', tuneGrid=mtry_grid, metric='Accuracy')
If not, does anyone have any suggestions for tuning a random forest with a multivariate response?
There's a great CRAN package, which you can do multivariate random forest tuning: https://cran.r-project.org/web/packages/MultivariateRandomForest/MultivariateRandomForest.pdf
Alternatively, you can use "party" (also in CRAN): https://cran.r-project.org/web/packages/party/party.pdf - look at "Conditional Inference Trees"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.