Description Usage Arguments Value Examples
This funcion computes the root mean squared error (RMSE) for a set of Random FOrest + Efficiency Analysis Trees models built with a grid of given hyperparameters.
1 2 3 4 5 6 7 8 9 10 |
training |
Training |
test |
Test |
x |
Column input indexes in |
y |
Column output indexes in |
numStop |
Minimum number of observations in a node for a split to be attempted. |
m |
Number of trees to be built. |
s_mtry |
|
na.rm |
|
A data.frame
with the sets of hyperparameters and the root mean squared error (RMSE) associated for each model.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data("PISAindex")
n <- nrow(PISAindex) # Observations in the dataset
selected <- sample(1:n, n * 0.7) # Training indexes
training <- PISAindex[selected, ] # Training set
test <- PISAindex[- selected, ] # Test set
bestRFEAT(training = training,
test = test,
x = 6:9,
y = 3,
numStop = c(3, 5),
m = c(20, 30),
s_mtry = c("1", "BRM"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.