Description Usage Arguments Value Examples
complexity
returns the complexity (total number of variables in the
ensemble, number of terms and mean number of variables per term) of a
prediction rule ensembles (i.e., an object of class 'pre' or 'premixed').
1 | complexity(object, penalty.par.val = "lambda.1se", ...)
|
object |
an object of class 'pre' or premixed'. |
penalty.par.val |
As usual. |
... |
not currently used. |
Returns a vector with the total number of variables in the ensemble, the total number of terms (i.e., baselearners with a non-zero coefficient), and the mean number of variables per term) in the ensemble.
1 2 3 4 | set.seed(42)
airq <- airquality[complete.cases(airquality),]
airq.ens1 <- premixed(Ozone ~ 1 | Month | Solar.R + Wind + Temp + Day, data = airq, ntrees = 10)
complexity(airq.ens1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.