View source: R/predict.hybridEnsemble.R
predict.hybridEnsemble | R Documentation |
Prediction of new data using a hybridEnsemble model.
## S3 method for class 'hybridEnsemble'
predict(object, newdata, verbose = FALSE, predict.all = FALSE, ...)
object |
An object of class hybridEnsemble created by the function |
newdata |
A data frame with the same predictors as in the training data |
verbose |
TRUE or FALSE. Should information be printed to the screen |
predict.all |
TRUE or FALSE. Should the predictions of all the members be returned? |
... |
Not currently used |
A list containing the following vectors:
predMEAN |
Predictions combined by the simple mean |
SB |
A label denoting the single best algorithm: RF=Random Forest, LR= Bagged Logistic Regression, AB= AdaBoost, SV=Bagged Support Vector Machines, NN=Bagged Neural Networks, KF=Kernel Factory |
predSB |
Predictions by the single best |
predAUTHORITY |
Predictions combined by authority |
..and all the combination methods that are requested in the hybridEnsemble
function.
Michel Ballings, Dauwe Vercamer, Matthias Bogaert, and Dirk Van den Poel, Maintainer: Michel.Ballings@GMail.com
Ballings, M., Vercamer, D., Bogaert, M., Van den Poel, D.
hybridEnsemble
, CVhybridEnsemble
, importance.hybridEnsemble
, plot.CVhybridEnsemble
, summary.CVhybridEnsemble
data(Credit)
## Not run:
hE <-hybridEnsemble(x=Credit[1:100,names(Credit) != 'Response'],
y=Credit$Response[1:100],
RF.ntree=50,
AB.iter=50,
NN.size=5,
NN.decay=0,
SV.gamma = 2^-15,
SV.cost = 2^-5,
SV.degree=2,
SV.kernel='radial')
predictions <- predict(hE, newdata=Credit[1:100,names(Credit) != 'Response'])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.