Efficient determination of the number of weak learners in AdaBoost | Synapse