MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / predict

Method predict

src/thundersvm/model/oneclass_svc.cpp:59–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59vector<float_type> OneClassSVC::predict(const DataSet::node2d &instances, int batch_size) {
60 vector<float_type> dec_values = SvmModel::predict(instances, batch_size);
61 vector<float_type> predict_y;
62 for (int i = 0; i < dec_values.size(); ++i) {
63 predict_y.push_back(dec_values[i] > 0 ? 1 : -1);
64 }
65 return predict_y;
66}
67
68
69void OneClassSVC::model_setup(const DataSet &dataset, SvmParam &param) {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected