Public Member Functions | Protected Member Functions

CStratifiedCrossValidationSplitting Class Reference

Detailed Description

Implementation of stratified cross-validation on the base of CSplittingStrategy. Produces subset index sets of equal size (at most one difference) in which the label ratio is equal (at most one difference) to the label ratio of the specified labels.

Definition at line 26 of file StratifiedCrossValidationSplitting.h.

Inheritance diagram for CStratifiedCrossValidationSplitting:
Inheritance graph

List of all members.

Public Member Functions

 CStratifiedCrossValidationSplitting ()
 CStratifiedCrossValidationSplitting (CLabels *labels, index_t num_subsets)
virtual const char * get_name () const

Protected Member Functions

void build_subsets ()

Constructor & Destructor Documentation


Definition at line 17 of file StratifiedCrossValidationSplitting.cpp.

CStratifiedCrossValidationSplitting ( CLabels labels,
index_t  num_subsets 


labels labels to be (possibly) used for splitting
num_subsets desired number of subsets, the labels are split into

Definition at line 22 of file StratifiedCrossValidationSplitting.cpp.

Member Function Documentation

void build_subsets (  )  [protected, virtual]

implementation of the stratified cross-validation splitting strategy

Implements CSplittingStrategy.

Definition at line 29 of file StratifiedCrossValidationSplitting.cpp.

virtual const char* get_name (  )  const [virtual]
name of the SGSerializable

Reimplemented from CSplittingStrategy.

Definition at line 40 of file StratifiedCrossValidationSplitting.h.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation