yat
0.14.5pre
|
Interface class for dividing samples into training and validation. More...
#include <yat/classifier/Sampler.h>
Public Member Functions | |
Sampler (const Target &target, size_t N) | |
Constructor. More... | |
virtual | ~Sampler ()=0 |
size_t | size (void) const |
const Target & | target (void) const |
const utility::Index & | training_index (size_t i) const |
const Target & | training_target (size_t i) const |
const utility::Index & | validation_index (size_t i) const |
const Target & | validation_target (size_t i) const |
Protected Attributes | |
std::vector< utility::Index > | training_index_ |
index of training sets for the partitions | |
std::vector< Target > | training_target_ |
Targets for training sets for the partitions. | |
std::vector< utility::Index > | validation_index_ |
index of validation sets for the partitions | |
std::vector< Target > | validation_target_ |
Targets for validation sets for the partitions. | |
Interface class for dividing samples into training and validation.
theplu::yat::classifier::Sampler::Sampler | ( | const Target & | target, |
size_t | N | ||
) |
Constructor.
target | used to balance partitions |
N | Number of partitions |
|
pure virtual |
Destructor (pure virtual destructor)
size_t theplu::yat::classifier::Sampler::size | ( | void | ) | const |
const Target& theplu::yat::classifier::Sampler::target | ( | void | ) | const |
const utility::Index& theplu::yat::classifier::Sampler::training_index | ( | size_t | i | ) | const |
const Target& theplu::yat::classifier::Sampler::training_target | ( | size_t | i | ) | const |
const utility::Index& theplu::yat::classifier::Sampler::validation_index | ( | size_t | i | ) | const |
const Target& theplu::yat::classifier::Sampler::validation_target | ( | size_t | i | ) | const |