This function performs predictions using a trained XGBoost model with early stopping. The function itself does not have any specific purpose; its existence is solely to ensure the proper operation of FF.

# S3 method for class 'classif.xgboost.earlystop'
predictLearner(.learner, .model, .newdata, ...)

Arguments

.learner

An object representing the learner.

.model

The trained XGBoost model used to make predictions.

.newdata

A data frame or matrix containing new observations for which predictions are to be made.

...

Additional parameters passed to the predict function in XGBoost.

Value

A vector of predicted class labels or a matrix of predicted probabilities.