Learning Monotonic Transformations for Classification