add support for SVM_KM for both online and offline settings