Closed Kiyoshika closed 3 years ago
Implemented.
#include <iostream>
#include <vector>
#include "data/DataSet.h"
using namespace std;
int main() {
DataSet data, sample;
data.load("xtrain.csv");
sample = data.sample(10); // without replacement
sample = data.sample(10, true); // with replacement
return 0;
}
Allow to sample with or without replacement from a data set.