Begin refactor CMakeLists debug/release paths

This commit is contained in:
2023-10-06 19:32:29 +02:00
parent 17e079edd5
commit 2f58807322
5 changed files with 87 additions and 64 deletions

View File

@@ -74,10 +74,11 @@ namespace platform {
auto chosen = vector<bool>(k, false);
while (remainder_samples_to_take > 0) {
int fold = (rand() % static_cast<int>(k));
cout << "-candidate: " << fold << endl;
if (chosen.at(fold)) {
continue;
}
chosen[k] = true;
chosen[fold] = true;
cout << "One goes to fold " << fold << " that had " << stratified_indices[fold].size() << " elements before" << endl;
auto it = next(class_indices[label].begin(), 1);
stratified_indices[fold].push_back(*class_indices[label].begin());