Predict with four models and unify results by the sub-model's specificity score to the four possible classes.
mi_unify_mod.Rd
Predict with four models and unify results by the sub-model's specificity score to the four possible classes.
Usage
mi_unify_mod(
data,
col_id,
result_rg,
result_rp,
result_xgb,
result_BP,
c_value = 0.75,
pad_len = 30
)
Arguments
- data
A dataframe contains the ID column.
- col_id
The name of ID column.
- result_rg
The result from the Random Forest model.
- result_rp
The result from the Decision Tree model.
- result_xgb
The result from the XGBoost model.
- result_BP
The result from the Backpropagation Neural Network model.
- c_value
A numeric value used in the final prediction calculation.
- pad_len
The length to pad the ID characters to.