libsvm icon indicating copy to clipboard operation
libsvm copied to clipboard

throw IOException when failing to load svm_model

Open StaffanArvidsson opened this issue 8 years ago • 0 comments

svm.svm_load_model returned null when given a non valid file, make more sense to throw an exception instead (now throws IOException). Added svm_print_err_string that works the same way as svm_print_string in svm.java. Now there's a way to remove printing errors directly to System.err which is bad if you wish to use libsvm as part of another java project. Added setter method for setting the svm_print_err_string

StaffanArvidsson avatar Oct 10 '16 14:10 StaffanArvidsson