public static SvmClassifier deserialize(byte[] modelData)
{
// TODO do something with the hyperparameters
try {
svm_model model = svm.svm_load_model(new BufferedReader(new InputStreamReader(new ByteArrayInputStream(modelData))));
return new SvmClassifier(model);
}
catch (IOException e) {
throw Throwables.propagate(e);
}