def predict(self, x): data = seq_to_svm_node(x) ret = svmc.svm_predict(self.model, data) svmc.svm_node_array_destroy(data) return ret
def predict(self, x): data = convert2SVMNode(x) ret = svmc.svm_predict(self.model, data) svmc.svm_node_array_destroy(data) return ret