Description Usage Arguments Details Value References Examples
The complexity parameter aims to save computing time by pruning off splits that are obviously not worthwhile. This function starting with null value of cp
and ranks the different possibles levels of pruning trees find best CART for different levels of cost complexity.
The main role of this parameter is to save computing time by pruning off splits that are obviously not worthwhile.
1 |
formula |
A formula of the form |
data |
Data frame from which variables specified in |
p |
A percentage of training elements |
includedata |
logicals. If TRUE the training and testing datasets are returned. |
seed |
a single value, interpreted as an integer, or |
... |
arguments passed to |
Classification And Regression Tree (CART) are a decision tree learning technique that produces either classification or regression trees, first introduced by Breiman et al.(1984). Trees used for regression and trees used for classification have some similarities - but also some differences, such as the procedure used to determine where to split.
An object of class Optim
. See Optim.object
Breiman L., Friedman J. H., Olshen R. A., and Stone, C. J. (1984) Classification and Regression Trees. Wadsworth.
1 2 3 4 5 6 7 | if(interactive()){
## Load a Dataset
data(AustralianCredit)
## Generate a model
modelFit <- Optim.CART(Y~., AustralianCredit, p = 0.7, seed=2018)
modelFit
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.