GenSVM
|
Calculate the number of support vectors. More...
#include "gensvm_sv.h"
Go to the source code of this file.
Functions | |
long | gensvm_num_sv (struct GenModel *model) |
Calculate the number of support vectors in a model. More... | |
Calculate the number of support vectors.
The function in this file can be used to calculate the number of support vectors are left in a model.
This file is part of GenSVM.
GenSVM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
GenSVM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with GenSVM. If not, see http://www.gnu.org/licenses/.
Definition in file gensvm_sv.c.
long gensvm_num_sv | ( | struct GenModel * | model | ) |
Calculate the number of support vectors in a model.
If an object is correctly classified, the number of classes for which the error q is larger than 1, is K-1 (i.e., there is no error w.r.t. any of the other classes). All objects for which this is not the case are thus support vectors.
[in] | model | GenModel with solution and up-to-date Q matrix |
Definition at line 46 of file gensvm_sv.c.