Text this: Interval-based KKT framework for support vector machines and beyond