Learn R Programming

VectorForgeML (version 0.1.0)

DecisionTree-class: Decision Tree Model

Description

Tree-based classification/regression algorithm.

Arguments

Value

DecisionTree object

Details

Provides functionality for DecisionTree operations.

See Also

VectorForgeML-package

Examples

Run this code
  model <- DecisionTree$new()
  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