public class RandomTreesEx1 extends Object
Fits a random forest to the Kyphosis data using ALACART decision trees and generates predictions on a test set.
This example builds a random forest RandomTrees with ALACART decision trees. A single tree and the random forest are fit to the Kyphosis data and predictions for a test-data set consisting of 10 "new" cases are generated.
The Kyphosis data 81 cases represent 81 children who have undergone surgery to correct a type of spinal deformity known as Kyphosis. The response variable is the presence or absence of Kyphosis after the surgery. The three predictors are:
Constructor and Description |
---|
RandomTreesEx1() |
Copyright © 2020 Rogue Wave Software. All rights reserved.