Research Article

Efficient E-Mail Spam Detection Strategy Using Genetic Decision Tree Processing with NLP Features

Algorithm 2

Decision tree.
 Initialization:
 Assign, No. of Documents = N;
    Datapoints = x;
    Target Inputs = y;
 Number of Leaves = ;
 Tree Depth = D;
 Criterion = C
for in testSize
 do
  for K in CV do
   test size = x_test and y_test;
   train size = x_train and y_train;
   for i < X do
    Call DT function;
    for j < D do
     Calculate: best_split;
     Predict: class (c);
     ++;
     For node: (c, C)
     return Predicted_Class ()
   Calculate: Accuracy;