This function generates predictions for new data using a trained SCE model. It combines predictions from individual trees in the ensemble, weighted by their respective importance weights.
SCE_Prediction(X_sample, model)
A matrix containing the ensemble predictions for each predictant. The number of rows equals the number of samples in X_sample, and the columns correspond to the predictant variables.
A data.frame or matrix containing the predictor variables for which predictions are to be made. Must contain all predictors used in model training.
A trained SCE model object generated through the SCE
function.
The model must contain the trained trees and their weights.
Kailong Li <lkl98509509@gmail.com>
The prediction process involves:
Generating predictions from each tree in the ensemble
Weighting the predictions based on tree weights
Combining the weighted predictions to form the ensemble prediction
This function is typically called internally by Model_simulation
and is not usually called directly by users.
SCE