Data-Driven Framework for Classification and Surgical Planning of Spinal Deformity.