Adaptive Classification for Prediction Under a Budget