methods for training svms