Research Article

Multiclass Boosting with Adaptive Group-Based kNN and Its Application in Text Categorization

Algorithm 1

Pseudocode of DIWC Double iterative weighted cascading.
Input: training set and weak
     classifier
OutPut: strong classifier
1   begin
2 test with
3 for ( ; ; )
4  for ( ; ; )
5   test with , and
6 calculate ,
7 test with and
8 for ( ; ; )
9  for ( ; ; )
10    test with and
11  calculate
12  for ( ; ; )
13   if
14    
15   else  if  
16    
17   else  if  
18    
19   else
20    
21    while ( )
22        goto  2
23    
24   end