Learn R Programming

VectorForgeML (version 0.1.0)

RandomForest-class: Random Forest Model

Description

Ensemble of decision trees.

Arguments

Value

RandomForest object

Details

Provides functionality for RandomForest operations.

See Also

VectorForgeML-package

Examples

Run this code
  model <- RandomForest$new(ntrees=5)
  X <- matrix(rnorm(20), nrow=10)
  y <- sample(0:1, 10, replace=TRUE)
  model$fit(X,y)
  model$predict(X)

Run the code above in your browser using DataLab