Imbalanced Classification under Capacity Constraints