Resampling liblinear training data w.r.t. weights based on optimality or best/worst case scenario