#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 50 of file CVDatasetTools.h.
typedef DatasetTypeT shark::CVFolds< DatasetTypeT >::DatasetType |
Definition at line 52 of file CVDatasetTools.h.
typedef DatasetType::IndexSet shark::CVFolds< DatasetTypeT >::IndexSet |
Definition at line 53 of file CVDatasetTools.h.
|
inline |
Creates an empty set of folds.
Definition at line 56 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 60 of file CVDatasetTools.h.
|
inline |
Definition at line 65 of file CVDatasetTools.h.
|
inline |
Returns the dataset underying the folds.
Definition at line 127 of file CVDatasetTools.h.
|
inline |
Returns the dataset underying the folds.
Definition at line 132 of file CVDatasetTools.h.
|
inline |
Returns the number of folds of the dataset.
Definition at line 107 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 82 of file CVDatasetTools.h.
Referenced by shark::CrossValidationError< ModelTypeT, LabelTypeT >::eval(), shark::SvmLogisticInterpretation< InputType >::eval(), shark::SvmLogisticInterpretation< InputType >::evalDerivative(), and main().
|
inline |
Definition at line 99 of file CVDatasetTools.h.
Referenced by shark::CVFolds< DatasetType >::training().
|
inline |
Definition at line 87 of file CVDatasetTools.h.
Referenced by shark::CrossValidationError< ModelTypeT, LabelTypeT >::eval(), shark::SvmLogisticInterpretation< InputType >::eval(), shark::SvmLogisticInterpretation< InputType >::evalDerivative(), and main().
|
inline |
returns the indices that make up the i-th validation fold
Definition at line 94 of file CVDatasetTools.h.
Referenced by shark::CVFolds< DatasetType >::validation().