1 #ifndef OPENANN_IO_DATA_SET_VIEW_H_
2 #define OPENANN_IO_DATA_SET_VIEW_H_
51 template<
typename InputIt>
53 : indices(index_begin, index_end), dataset(&dataset)
84 virtual Eigen::VectorXd&
getTarget(
int i);
100 std::vector<int> indices;
119 void split(std::vector<DataSetView>& groups, DataSet&
dataset,
120 int numberOfGroups,
bool shuffling =
true);
135 void split(std::vector<DataSetView>& groups, DataSet&
dataset,
136 double ratio = 0.5,
bool shuffling =
true);
146 void merge(DataSetView& merging, std::vector<DataSetView>& groups);
157 DataSetView
sample(DataSet& dataSet,
double fraction,
bool replacement);
161 #endif // OPENANN_IO_DATA_SET_VIEW_H_