GenSVM
|
Header file for gensvm_checks.c. More...
#include "gensvm_base.h"
Go to the source code of this file.
Functions | |
bool | gensvm_check_outcome_contiguous (struct GenData *data) |
Check if the labels are contiguous on [1 .. K]. More... | |
Header file for gensvm_checks.c.
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_checks.h.
bool gensvm_check_outcome_contiguous | ( | struct GenData * | data | ) |
Check if the labels are contiguous on [1 .. K].
The GenSVM library currently requires that the labels that are supplied in a dataset are contigous on the interval [1 .. K] and have no gaps. This is required because the dimensionality of the problem is directly related to the maximum class label K. This function checks if the labels are indeed in the desired range.
[in] | data | a GenData struct with the current data |
Definition at line 43 of file gensvm_checks.c.