ml.rf {RGeostats}R Documentation

Regression or Classification using Random Forest

Description

Regression or Classification using Random Forest algorithm. See ranger for more details.

Usage

ml.rf(dbin, dbout, classification = FALSE, auxnames = NA, catnames = NA, 
num.trees = c(100, 500, 1000, 2000), mtry = c(1), probability = FALSE, ...,
verbose = FALSE, radix = NA, modify.target = db.locmod())

Arguments

dbin

The db-class database containing the data

dbout

The db-class database containing the targets

classification

If TRUE, perform a classification (Interest variable should be categorical), otherwise perform a regression.

auxnames

List of optional auxiliary continuous covariables. See details for more information. If empty, only coordinates are used.

catnames

List of optional auxiliary categorical covariables. See details for more information. If empty, only coordinates are used.

num.trees,...

List of num.trees values to be tested for tuning the model. See ranger for details.

mtry

List of mtry values to be tested for tuning the model. See ranger for details.

probability

To be defined.

verbose

Verbose flag

radix

Radix of the name given to the variable storing the results in the target Db.

modify.target

Decides whether or not the newly created variables will have their locator defined or not. For more information, see db.locmod.

Details

The training is based on the following information from 'dbin':

The prediction is performed in 'dbout'. It requires the following information:

The number of coordinates, as well as the number of auxiliary variables must match between 'dbin' and 'dbout'.

Value

The target Db where the resulting variable has been added.


[Package RGeostats version 14.0.10 Index]