35 #ifndef DATA_FETCHER_H__ 36 #define DATA_FETCHER_H__ 47 #ifndef DOXYGEN_SHOULD_SKIP_THIS 50 friend class DataManager;
51 friend class InitPerFeature;
53 DataFetcher(CFeatures* samples);
54 virtual ~DataFetcher();
56 void set_blockwise(
bool blockwise);
58 void set_train_test_mode(
bool on);
59 bool is_train_test_mode()
const;
61 void set_train_mode(
bool on);
62 bool is_train_mode()
const;
64 void set_train_test_ratio(
float64_t ratio);
67 virtual void shuffle_features();
68 virtual void unshuffle_features();
70 virtual void use_fold(
index_t i);
71 virtual void init_active_subset();
74 virtual CFeatures* next();
78 virtual index_t get_num_samples()
const;
81 index_t get_num_training_samples()
const;
82 index_t get_num_testing_samples()
const;
84 BlockwiseDetails& fetch_blockwise();
85 virtual const char* get_name()
const 91 BlockwiseDetails m_block_details;
98 SGVector<index_t> shuffle_subset;
99 SGVector<index_t> active_subset;
100 bool features_shuffled;
101 BlockwiseDetails last_blockwise_details;
102 void allocate_active_subset();
104 #endif // DOXYGEN_SHOULD_SKIP_THIS 108 #endif // DATA_FETCHER_H__
all of classes and functions are contained in the shogun namespace