37 using namespace shark;
47 typedef unsigned int L;
49 std::size_t start = 0, end = 42;
55 std::vector<std::size_t> indices;
76 std::size_t class0 = 0, class1 = 1;
84 std::vector<std::size_t> indices(view.
size());
85 for (std::size_t i=0; i<view.
size(); i++) indices[i] = i;
86 for (std::size_t i=0; i<k; i++)
std::swap(indices[i], indices[rand() % view.
size()]);
95 std::size_t numberOfPartitions = 5;
96 std::vector<std::size_t> indices;
113 std::size_t numberOfPartitions = 5;
114 std::size_t numberOfFolds = 3;
117 for (std::size_t i=0; i<numberOfPartitions; i++)