Description Usage Arguments Details Value See Also Examples
View source: R/predict_adaboost.R
predictions for model corresponding to real_adaboost algorithm
1 2 |
object |
an object of class real_adaboost |
newdata |
dataframe on which we are looking to predict |
... |
arguments passed to predict.default |
makes predictions for an adaboost object on a new dataset
using the real_adaboost algorithm.
The target variable is not required
for the prediction to work.
However, the user must ensure that the test data has the same
columns which were used as inputs to fit the original model.
The error component of the prediction object(as in
pred$error
) can be used to get the error of the
test set if the test data is labeled.
predicted object, which is a list with the following components
formula |
the formula used. |
votes |
total weighted votes achieved by each class |
class |
the class predicted by the classifier |
prob |
a matrix with predicted probability of each class for each observation |
error |
The error on the test data if labeled, otherwise |
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.