00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef EXPERIMENT_RANDOM_SELECTOR_H
00011 #define EXPERIMENT_RANDOM_SELECTOR_H
00012
00013 #include "experiment/example-selector.h"
00014
00015 using namespace libpmk;
00016
00017 namespace libpmk_util {
00018
00020 class RandomSelector : public ExampleSelector {
00021 public:
00022 RandomSelector(const vector<int>& labels, int num_train_per_class);
00023
00024 protected:
00025 virtual void SelectExamples();
00026
00027 private:
00028 int num_train_per_class_;
00029 };
00030 }
00031 #endif // EXPERIMENT_RANDOM_SELECTOR_H