GenSVM
Functions
gensvm_checks.h File Reference

Header file for gensvm_checks.c. More...

#include "gensvm_base.h"
Include dependency graph for gensvm_checks.h:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Header file for gensvm_checks.c.

Author
G.J.J. van den Burg
Date
2016-12-07

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.

Function Documentation

◆ gensvm_check_outcome_contiguous()

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.

Parameters
[in]dataa GenData struct with the current data
Returns
whether the labels are contiguous or not

Definition at line 43 of file gensvm_checks.c.