Adaptation for adaboost