48 long i, j, num_correct, num_sv = 0;
51 for (i=0; i<model->
n; i++) {
53 for (j=0; j<model->
K; j++) {
55 num_correct += (value > 1);
57 num_sv += (num_correct < model->
K - 1);
#define matrix_get(M, cols, i, j)
long gensvm_num_sv(struct GenModel *model)
Calculate the number of support vectors in a model.
A structure to represent a single GenSVM model.
long n
number of instances in the dataset
long K
number of classes in the dataset
Header file for gensvm_sv.c.