predict-forestry: predict-forestry

Description Usage Arguments Details Value See Also

Description

Return the prediction from the forest.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'forestry'
predict(
  object,
  feature.new,
  aggregation = "average",
  localVariableImportance = FALSE,
  ...
)

Arguments

object

A trained model object of class "forestry".

feature.new

A data frame of testing predictors.

aggregation

How shall the leaf be aggregated. The default is to return the mean of the leave 'average'. Other options are 'weightMatrix' and 'coefs' to return the ridge regression coefficients when doing Linear Random Forest.

localVariableImportance

Returns a matrix providing local variable importance for each prediction.

...

additional arguments.

Details

Allows for different methods of prediction on new data.

Value

A vector of predicted responses.

See Also

forestry


soerenkuenzel/forestry documentation built on April 25, 2021, 10:02 a.m.