Divergence Regulated Encoder Network for Joint Dimensionality Reduction and Classification