I trained the libsvm model on weka and then saved the model. Now I want to use this model in java.
Classifier cls = (Classifier)weka.core.SerializationHelper.read(this.modelPath);
I get this error
"java.io.InvalidClassException: libsvm.svm_model; local class is not compatible: stream classdesc serialVersionUID = -8642637231196646922, local class serialVersionUID = 2709444323471798245"
when i run the code above. I want to know how I can download and use the model.
, , (., , serialVersionUID ? ). serialVersionUID , , . , , Java, - . Java, - ,
serialVersionUID
static final long serialVersionUID = -8642637231196646922;
.
: Classifier Weka. , serialVersionUID . , Weka? , Weka serialVersionUID.
Classifier
serialVersionUID. SerializationHelper / LibSVM ( ):
weka.core.SerializationHelper.write("/some/where/svm.model", svmModel); LibSVM svm = (LibSVM) weka.core.SerializationHelper.read("/some/where/svm.model");
Source: https://habr.com/ru/post/1532483/More articles:Загрузка xsendFile имеет 0 байт - phpHow to change installed msi functions using wix bootloader? - wixComparing VBA with multiple variables - vbaHow to save blank lines when reading a command in a bash array? - bashConvert vector to byte string in Haskell - haskellTrimming converted text to SVG - htmlhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1532485/how-to-use-c-libraries-to-create-gnome-app-in-javascript&usg=ALkJrhgo1qIL8o9OLv8Qwbbsht8geHIB7AПолучение параметров клавиатуры с использованием Gnome libs (GDK) выбирает только начальное состояние - cHow to pass request parameter to Devise login page - ruby-on-railsZurb F5: changing the base font size and rem-base is confusing - sassAll Articles