Alternative to stacking: weighted average of base model predictions. Simpler and more interpretable, often performs comparably.
Public fields
modalitiesList of OmicModalitySpec objects
weightsNamed numeric vector of modality weights
resamplingResampling strategy for weight estimation
task_type"classif" or "regr"
Methods
Method new()
Create a new weighted ensemble
Usage
OmicWeightedEnsemble$new(
modalities,
weights = NULL,
resampling = NULL,
task_type = "classif"
)Method train()
Train the weighted ensemble
Usage
OmicWeightedEnsemble$train(
y,
target_name = "target",
weight_method = c("inverse_logloss", "auc", "uniform")
)Method predict()
Predict using weighted averaging