predict_randomForest: Predict with randomForest

predict_randomForestR Documentation

Predict with randomForest

Description

Predict with randomForest

Usage

predict_randomForest(
  modelRF,
  predInput,
  scaleInput = FALSE,
  col_means_train,
  col_stddevs_train,
  filename = "",
  tempdirRaster = NULL,
  nCoresRaster = 2
)

Arguments

modelRF

a randomForest::randomForest() model.

predInput

data.frame or raster with colnames or layer names matching the expected input for modelRF.

scaleInput

if TRUE, scale predInput with col_means_train and col col_stddevs_train.

col_means_train

the original mean of the predInput columns.

col_stddevs_train

the original sd of the predInput columns.

filename

the file to write the raster predictions.

tempdirRaster

path to a directory to save temporal raster files.

nCoresRaster

number of cores used for parallelized raster cores. Use half of the available cores by default.


jmaspons/MLTools documentation built on Jan. 27, 2024, 4:31 a.m.