R: Tune a forests

tune_forest {grf} | R Documentation

## Tune a forests

### Description

Finds the optimal parameters to be used in training a forest.

### Usage

    tune_forest(data, nrow.X, ncol.X, args, tune.parameters,
      tune.parameters.defaults, num.fit.trees, num.fit.reps, num.optimize.reps,
      train, predict_oob, predict.data.args)

### Arguments

`data` | The data arguments (output from create_data_matrices) for the forest.
`nrow.X` | The number of observations.
`ncol.X` | The number of variables.
`args` | The remaining call arguments for the forest.
`tune.parameters` | The vector of parameter names to tune.
`tune.parameters.defaults` | The grf default values for the vector of parameter names to tune.
`num.fit.trees` | The number of trees in each 'mini forest' used to fit the tuning model.
`num.fit.reps` | The number of forests used to fit the tuning model.
`num.optimize.reps` | The number of random parameter values considered when using the model to select the optimal parameters.
`train` | The grf forest training function.
`predict_oob` | The grf forest oob prediction function.
`predict.data.args` | The names of the arguments in data passed to predict_oob.

### Value

tuning output

[Package grf version 1.0.0 Index]