#include <shark/Data/CVDatasetTools.h>
Public Types | |
typedef DatasetTypeT | DatasetType |
typedef DatasetType::IndexSet | IndexSet |
Public Member Functions | |
CVFolds () | |
Creates an empty set of folds. | |
CVFolds (DatasetType const &set, std::vector< IndexSet > const &validationIndizes) | |
partitions set in validation folds indicated by the second argument. | |
CVFolds (DatasetType const &set, std::vector< std::size_t > const &foldStart) | |
DatasetType | training (std::size_t i) const |
DatasetType | validation (std::size_t i) const |
IndexSet const & | validationFoldIndices (std::size_t i) const |
returns the indices that make up the i-th validation fold | |
IndexSet | trainingFoldIndices (std::size_t i) const |
std::size_t | size () const |
Returns the number of folds of the dataset. | |
DatasetType const & | dataset () const |
Returns the dataset underying the folds. | |
DatasetType & | dataset () |
Returns the dataset underying the folds. | |
Definition at line 49 of file CVDatasetTools.h.
typedef DatasetTypeT shark::CVFolds< DatasetTypeT >::DatasetType |
Definition at line 51 of file CVDatasetTools.h.
typedef DatasetType::IndexSet shark::CVFolds< DatasetTypeT >::IndexSet |
Definition at line 52 of file CVDatasetTools.h.
|
inline |
Creates an empty set of folds.
Definition at line 55 of file CVDatasetTools.h.
|
inline |
partitions set in validation folds indicated by the second argument.
The folds are given as the batch indices of the validation sets
Definition at line 59 of file CVDatasetTools.h.
|
inline |
Definition at line 64 of file CVDatasetTools.h.
|
inline |
Returns the dataset underying the folds.
Definition at line 114 of file CVDatasetTools.h.
|
inline |
Returns the dataset underying the folds.
Definition at line 109 of file CVDatasetTools.h.
|
inline |
Returns the number of folds of the dataset.
Definition at line 104 of file CVDatasetTools.h.
Referenced by shark::CrossValidationError< ModelTypeT, LabelTypeT >::eval(), main(), shark::CVFolds< DatasetTypeT >::training(), shark::CVFolds< DatasetTypeT >::trainingFoldIndices(), shark::CVFolds< DatasetTypeT >::validation(), and shark::CVFolds< DatasetTypeT >::validationFoldIndices().
|
inline |
Definition at line 81 of file CVDatasetTools.h.
References shark::CVFolds< DatasetTypeT >::size(), SIZE_CHECK, and shark::CVFolds< DatasetTypeT >::trainingFoldIndices().
Referenced by shark::CrossValidationError< ModelTypeT, LabelTypeT >::eval(), shark::SvmLogisticInterpretation< InputType >::eval(), shark::SvmLogisticInterpretation< InputType >::evalDerivative(), main(), and main().
|
inline |
Definition at line 96 of file CVDatasetTools.h.
References shark::CVFolds< DatasetTypeT >::size(), and SIZE_CHECK.
Referenced by shark::CVFolds< DatasetTypeT >::training().
|
inline |
Definition at line 85 of file CVDatasetTools.h.
References shark::CVFolds< DatasetTypeT >::size(), SIZE_CHECK, and shark::CVFolds< DatasetTypeT >::validationFoldIndices().
Referenced by shark::CrossValidationError< ModelTypeT, LabelTypeT >::eval(), shark::SvmLogisticInterpretation< InputType >::eval(), shark::SvmLogisticInterpretation< InputType >::evalDerivative(), main(), and main().
|
inline |
returns the indices that make up the i-th validation fold
Definition at line 91 of file CVDatasetTools.h.
References shark::CVFolds< DatasetTypeT >::size(), and SIZE_CHECK.
Referenced by shark::CVFolds< DatasetTypeT >::validation().