37 using namespace shark;
47 typedef unsigned int L;
49 std::size_t start = 0, end = 42;
55 std::vector<std::size_t> indices;
68 std::size_t class0 = 0, class1 = 1;
76 std::vector<std::size_t> indices(view.
size());
77 for (std::size_t i=0; i<view.
size(); i++) indices[i] = i;
78 for (std::size_t i=0; i<k; i++)
std::swap(indices[i], indices[rand() % view.
size()]);
87 std::size_t numberOfPartitions = 5;
88 std::vector<std::size_t> indices;
105 std::size_t numberOfPartitions = 5;
106 std::size_t numberOfFolds = 3;
109 for (std::size_t i=0; i<numberOfPartitions; i++)