|
SHOGUN
v1.1.0
|
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.

Public Member Functions | |
| CStratifiedCrossValidationSplitting () | |
| CStratifiedCrossValidationSplitting (CLabels *labels, index_t num_subsets) | |
| virtual const char * | get_name () const |
Public Member Functions inherited from CSplittingStrategy | |
| CSplittingStrategy () | |
| CSplittingStrategy (CLabels *labels, index_t num_subsets) | |
| virtual | ~CSplittingStrategy () |
| SGVector< index_t > | generate_subset_indices (index_t subset_idx) |
| SGVector< index_t > | generate_subset_inverse (index_t subset_idx) |
| index_t | get_num_subsets () const |
Public Member Functions inherited from CSGObject | |
| CSGObject () | |
| CSGObject (const CSGObject &orig) | |
| virtual | ~CSGObject () |
| virtual bool | is_generic (EPrimitiveType *generic) const |
| template<class T > | |
| void | set_generic () |
| void | unset_generic () |
| virtual void | print_serializable (const char *prefix="") |
| virtual bool | save_serializable (CSerializableFile *file, const char *prefix="") |
| virtual bool | load_serializable (CSerializableFile *file, const char *prefix="") |
| void | set_global_io (SGIO *io) |
| SGIO * | get_global_io () |
| void | set_global_parallel (Parallel *parallel) |
| Parallel * | get_global_parallel () |
| void | set_global_version (Version *version) |
| Version * | get_global_version () |
| SGVector< char * > | get_modelsel_names () |
| char * | get_modsel_param_descr (const char *param_name) |
| index_t | get_modsel_param_index (const char *param_name) |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
Protected Member Functions | |
| void | build_subsets () |
Protected Member Functions inherited from CSGObject | |
| virtual void | load_serializable_pre () throw (ShogunException) |
| virtual void | load_serializable_post () throw (ShogunException) |
| virtual void | save_serializable_pre () throw (ShogunException) |
| virtual void | save_serializable_post () throw (ShogunException) |
Additional Inherited Members | |
Public Attributes inherited from CSGObject | |
| SGIO * | io |
| Parallel * | parallel |
| Version * | version |
| Parameter * | m_parameters |
| Parameter * | m_model_selection_parameters |
Protected Attributes inherited from CSplittingStrategy | |
| CLabels * | m_labels |
| CDynamicObjectArray < CDynamicArray< index_t > > * | m_subset_indices |
constructor
Definition at line 17 of file StratifiedCrossValidationSplitting.cpp.
| CStratifiedCrossValidationSplitting | ( | CLabels * | labels, |
| index_t | num_subsets | ||
| ) |
constructor
| 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.
|
protectedvirtual |
implementation of the stratified cross-validation splitting strategy
Implements CSplittingStrategy.
Definition at line 29 of file StratifiedCrossValidationSplitting.cpp.
|
virtual |
Reimplemented from CSplittingStrategy.
Definition at line 40 of file StratifiedCrossValidationSplitting.h.