Research Article

Optimization of Tree-Based Machine Learning Models to Predict the Length of Hospital Stay Using Genetic Algorithm

Table 5

Hyperparameters of tree-based models in the training model and genetic algorithm.

ModelHyperparametersTypeIntervalTraining modelGenetic algorithm
DefaultIntervalOptimized

Decision treemax_depthIntNone(1, 1000)224
min_samples_leafInt1(1, 50)17
ccp_alphaNonnegative float0(0, 1)0.9

Random forestmax_featuresInt(1, no. of variables)1(1, 12)6
n_estimatorsInt(1, inf)1(50, 1000)883
max_depthInt(1, 100)100(1, 7)43
min_samples_leafInt(1, sample size)(1, 50)8
max_samplesFloat(0,1)1(0.1, 1)0.65

XGBoostlearning_rateFloat(0,1)0.3(0.001, 1)0.4
n_estimatorInt(1-Inf)1000(50, 1000)139
max_depthInt(0, inf)6(1, 7)1
SubsampleFloat(0-1)1(0.1, 1)0.9
colsample_by_treeFloat(0-1)1(0.1, 1)0.15
reg_lambdaNonnegative float1(1, 3)2.8