Research Article

Software Defect Prediction via Attention-Based Recurrent Neural Network

Table 7

Tuned parameters for DP-ARNN.

ParameterDescription (value)

Embedding_dimThe dimensionality of embedding vectors (30)
Vector_lengthThe length of each AST vector (2000)
Bi-LSTM unitsThe number of the Bi-LSTM units per layer (40)
1st hidden layer nodesThe number of 1st hidden layer nodes (16)
2nd hidden layer nodesThe number of 2nd hidden layer nodes (24)
Batch_sizeThe number of training samples that propagated through DP-ARNN at a time (32)
EpochOne forward/backward pass of all the training samples (20)
MonitorThe evaluation criteria on the validation set (val_acc)
Loss functionThe loss function to minimize (binary_crossentropy)
OptimizerThe loss function solver (RMSprop)
ActivationTypes of activation used in fully connected layers (tanh, linear, and sigmoid)