44 for (
index_t i=0; i<indices.vlen; ++i)
57 current_subset=(current_subset+1) % num_subsets;
void range_fill(T start=0)
static void permute(SGVector< T > v, CRandom *rand=NULL)
The class Labels models labels, i.e. class assignments of objects.
virtual int32_t get_num_labels() const =0
Abstract base class for all splitting types. Takes a CLabels instance and generates a desired number ...
int32_t get_num_elements() const
Template Dynamic array class that creates an array that can be used like a list or an array...
virtual void build_subsets()
CCrossValidationSplitting()
all of classes and functions are contained in the shogun namespace
CDynamicObjectArray * m_subset_indices
CSGObject * get_element(int32_t index) const