ml.rf {RGeostats} | R Documentation |
Regression or Classification using Random Forest algorithm.
See ranger
for more details.
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())
dbin |
The |
dbout |
The |
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 |
mtry |
List of mtry values to be tested for tuning the model.
See |
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 |
The training is based on the following information from 'dbin':
The coordinates
The auxiliary continuous variable name(s) (defined in 'auxnames')
The auxiliary categorical variable name(s) (defined in 'catnames')
The target variable (first variable with locator 'z')
The prediction is performed in 'dbout'. It requires the following information:
The coordinates
The auxiliary continuous variable name(s) (defined in 'auxnames')
The auxiliary categorical variable name(s) (defined in 'auxnames')
The number of coordinates, as well as the number of auxiliary variables must match between 'dbin' and 'dbout'.
The target Db where the resulting variable has been added.