predictLearner.classif.xgboost.earlystop: Prediction Function for the Tuned XGBoost Model with Early...

View source: R/FF.R

predictLearner.classif.xgboost.earlystopR Documentation

Prediction Function for the Tuned XGBoost Model with Early Stopping

Description

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.

Usage

## 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.


EFAfactors documentation built on Sept. 30, 2024, 1:06 a.m.