Learn R Programming

SCE (version 1.0.0)

SCE_Prediction: Generate Predictions using an SCE Model

Description

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.

Usage

SCE_Prediction(X_sample, model)

Value

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.

Arguments

X_sample

A data.frame or matrix containing the predictor variables for which predictions are to be made. Must contain all predictors used in model training.

model

A trained SCE model object generated through the SCE function. The model must contain the trained trees and their weights.

Author

Kailong Li <lkl98509509@gmail.com>

Details

The prediction process involves:

  1. Generating predictions from each tree in the ensemble

  2. Weighting the predictions based on tree weights

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

See Also

SCE