predict.swag {swag} | R Documentation |
Predict method for SWAG
Description
Gives predictions for different train
learners obtained by swag
.
Usage
## S3 method for class 'swag'
predict(
object,
newdata = NULL,
type = c("best", "cv_performance", "attribute"),
cv_performance = NULL,
attribute = NULL,
...
)
Arguments
object |
An object of class |
newdata |
an optional set of data to predict on. If |
type |
type of prediction required. The default is "best", it takes
the best model (with lowest CV errors). The option "cv_performance"
(which requires |
cv_performance |
a level of CV errors (between 0 and 1) combines with
|
attribute |
an attribute combines with |
... |
Not used for the moment. |
Details
Currently the different train
learners are trained (again) to make the predictions.
Value
Predictions .
Author(s)
Gaetan Bakalli, Samuel Orso and Cesare Miglioli