powered by
Prediction of new data using DECORATE
# S3 method for DECORATE predict(object, newdata, type = "prob", all = FALSE, ...)
an object of the class DECORATE, as created by the function DECORATE.
DECORATE
a data frame containing the same predictors as in the training phase.
character specifying whether to return the probabilites ('prob') or class ('class'). Default: prob.
Return the predictions per tree instead of the average (default = FALSE).
Not used currently.
vector containing the response probabilities.
# NOT RUN { data(iris) y <- as.factor(ifelse(iris$Species[1:100]=="setosa",0,1)) x <- iris[1:100,-5] dec <- DECORATE(x = x, y = y) predict(object=dec,newdata=x) # }
Run the code above in your browser using DataLab