31 #ifndef DATA_MANAGER_H__ 32 #define DATA_MANAGER_H__ 191 #ifndef DOXYGEN_SHOULD_SKIP_THIS 192 void set_blockwise(
bool blockwise);
193 const bool is_blockwise()
const;
195 void set_train_test_mode(
bool on);
196 bool is_train_test_mode()
const;
198 void set_train_mode(
bool on);
199 bool is_train_mode()
const;
201 void set_cross_validation_mode(
bool on);
202 bool is_cross_validation_mode()
const;
204 void set_train_test_ratio(
float64_t ratio);
209 void shuffle_features();
210 void unshuffle_features();
213 void init_active_subset();
219 #endif // DOXYGEN_SHOULD_SKIP_THIS 221 std::vector<std::unique_ptr<DataFetcher> > fetchers;
223 bool train_test_mode;
224 bool cross_validation_mode;
228 constexpr
static bool default_train_test_mode=
false;
229 constexpr
static bool default_train_mode=
false;
230 constexpr
static bool default_cross_validation_mode=
false;
231 constexpr
static float64_t default_train_test_ratio=1.0;
238 #endif // DATA_MANAGER_H__ DataManager(index_t num_distributions)
index_t & num_samples_at(index_t i)
void set_blocksize(index_t blocksize)
InitPerFeature samples_at(index_t i)
const index_t blocksize_at(index_t i) const
index_t get_num_samples() const
void set_num_blocks_per_burst(index_t num_blocks_per_burst)
all of classes and functions are contained in the shogun namespace
DataManager & operator=(const DataManager &other)=delete
The class Features is the base class of all feature objects.
Class DataManager for fetching/streaming test data block-wise. It can handle data coming from multipl...
class NextSamples is the return type for next() call in DataManager. If there are no more samples (fr...
index_t get_min_blocksize() const