An end-to-end framework that jointly learns task-specific hyperspectral band selection and a neural model for classification and segmentation.