apply adaboost in mapper