[INFO ] smile.base.svm.LASVM[finish:442] - 79269 samples, 288 support vectors, 207 bounded
Exception in thread "main" java.lang.UnsupportedOperationException: java.lang.UnsupportedOperationException: soft classification with a hard classifier
at smile.classification.Classifier.predict(Classifier.java:191)
I also tried to use model.score function and I got the following error:
[INFO ] smile.base.svm.LASVM[finish:442] - 79269 samples, 290 support vectors, 225 bounded
Exception in thread "main" java.lang.UnsupportedOperationException
at smile.classification.Classifier.score(Classifier.java:106)
I also want to get the weights of each feature after the model is trained.
In addition, is there a way to set class weights similar to the parameter class_weight in scikit-learn?
Hi,
I tried to build a linear SVM model using Smile (v3.0.2) with the following code. It doesn't work when I tried to get predicted probability or score.
I also tried to use model.score function and I got the following error:
I also want to get the weights of each feature after the model is trained.
In addition, is there a way to set class weights similar to the parameter class_weight in scikit-learn?