#include <shark/Data/CVDatasetTools.h>
Public Types | |
typedef DatasetTypeT | DatasetType |
typedef DatasetType::IndexSet | IndexSet |
Public Member Functions | |
CVFolds () | |
Creates an empty set of folds. More... | |
CVFolds (DatasetType const &set, std::vector< IndexSet > const &validationIndizes) | |
partitions set in validation folds indicated by the second argument. More... | |
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 More... | |
IndexSet | trainingFoldIndices (std::size_t i) const |
std::size_t | size () const |
Returns the number of folds of the dataset. More... | |
DatasetType const & | dataset () const |
Returns the dataset underying the folds. More... | |
DatasetType & | dataset () |
Returns the dataset underying the folds. More... | |
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 109 of file CVDatasetTools.h.
|
inline |
Returns the dataset underying the folds.
Definition at line 114 of file CVDatasetTools.h.
|
inline |
Returns the number of folds of the dataset.
Definition at line 104 of file CVDatasetTools.h.
Referenced by shark::createCVBatch(), shark::createCVFullyIndexed(), shark::createCVIndexed(), shark::CrossValidationError< ModelTypeT, LabelTypeT >::eval(), main(), shark::CVFolds< DatasetType >::training(), shark::CVFolds< DatasetType >::trainingFoldIndices(), shark::CVFolds< DatasetType >::validation(), and shark::CVFolds< DatasetType >::validationFoldIndices().
|
inline |
Definition at line 81 of file CVDatasetTools.h.
Referenced by shark::CrossValidationError< ModelTypeT, LabelTypeT >::eval(), and main().
|
inline |
Definition at line 96 of file CVDatasetTools.h.
Referenced by shark::CVFolds< DatasetType >::training().
|
inline |
Definition at line 85 of file CVDatasetTools.h.
Referenced by shark::CrossValidationError< ModelTypeT, LabelTypeT >::eval(), and main().
|
inline |
returns the indices that make up the i-th validation fold
Definition at line 91 of file CVDatasetTools.h.
Referenced by shark::CVFolds< DatasetType >::validation().