Deserializing a serialized model produces the following error:
java.io.InvalidClassException:
weka.classifiers.trees.RandomForest; Incompatible class (SUID):
weka.classifiers.trees.RandomForest
I tried the following 2 methods provided in the wiki for the project:
//First Method
RandomForest rf = (RandomForest) weka.core.SerializationHelper.
read(Environment.getExternalStorageDirectory().getPath() + "/BC.model");
//Second Method
ObjectInputStream ois = new ObjectInputStream(new FileInputStream(
Environment.getExternalStorageDirectory().getPath() + "/BC.model"));
RandomForest rf = new RandomForest();
rf = (RandomForest) ois.readObject();
Note: I use WEKAstripped.jar
Deserializing a serialized model produces the following error:
I tried the following 2 methods provided in the wiki for the project:
Note: I use WEKAstripped.jar