| Algorithm 1 AWE pseudocode. |
| Input: S: new data chunk |
| K: size of the ensemble |
| C: ensemble of K classifiers |
| Output: C: ensemble of K classifiers with updated weights |
| Train new classifier with S; |
| Calculate weight of based on 1 using cross-validation on S; |
| for in C do |
| Calculate weight of based on 1 |
| end for |
| C ← K classifiers with highest weights from ; |
| return C; |