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

Method predict

src/thundersvm/model/svc.cpp:179–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179vector<float_type> SVC::predict(const DataSet::node2d &instances, int batch_size) {
180 dec_values.resize(instances.size() * n_binary_models);
181 predict_dec_values(instances, dec_values, batch_size);
182 return predict_label(dec_values, instances.size());
183}
184
185float_type sigmoidPredict(float_type dec_value, float_type A, float_type B) {
186 double fApB = dec_value * A + B;

Callers 13

TESTFunction · 0.45
mainFunction · 0.45
predict_RFunction · 0.45
sparse_predictFunction · 0.45
dense_predictFunction · 0.45
sparse_decisionFunction · 0.45
dense_decisionFunction · 0.45
thundersvm_train_subFunction · 0.45

Calls 2

resizeMethod · 0.80
sizeMethod · 0.45

Tested by 5

TESTFunction · 0.36