Adaptive Ensemble Learning with Confidence Bounds