Description Usage Format Examples
An implmentation of the bagging ensemble method.
1 |
An object of class R6ClassGenerator
of length 24.
1 2 3 4 | clf <- Bagging$new(10)
clf$train(100, monks1_train[, -c(1,8)], monks1_train[,1])
preds <- clf$predict(monks1_test[, -c(1,8)])
accuracy <- sum(preds == monks1_test[,1])/nrow(monks1_test)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.