mirror of https://github.com/CGAL/cgal
Use cpp98::random_shuffle to avoid errors in C++17
This commit is contained in:
parent
e3a4db56f6
commit
48dda04768
|
|
@ -45,7 +45,7 @@
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <algorithm>
|
#include <CGAL/algorithm.h>
|
||||||
|
|
||||||
#include <CGAL/tags.h>
|
#include <CGAL/tags.h>
|
||||||
|
|
||||||
|
|
@ -113,7 +113,7 @@ public:
|
||||||
std::vector<int> in_bag_samples = sample_idxes;
|
std::vector<int> in_bag_samples = sample_idxes;
|
||||||
|
|
||||||
// Bagging: draw random sample indexes used for this tree
|
// Bagging: draw random sample indexes used for this tree
|
||||||
std::random_shuffle (in_bag_samples.begin(),in_bag_samples.end());
|
CGAL::cpp98::random_shuffle (in_bag_samples.begin(),in_bag_samples.end());
|
||||||
|
|
||||||
// Train the tree
|
// Train the tree
|
||||||
trees[i_tree].train(samples, labels, &in_bag_samples[0], n_in_bag_samples, split_generator, gen);
|
trees[i_tree].train(samples, labels, &in_bag_samples[0], n_in_bag_samples, split_generator, gen);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue