Adaptive Hierarchical Classification With Limited Training Data