Variable selection and basis learning for ordinal classification