Skip to content
Snippets Groups Projects
Commit ac462e23 authored by Jordi Inglada's avatar Jordi Inglada
Browse files

ENH: generate samples in parallel for smote

parent a18cf8c6
No related branches found
No related tags found
No related merge requests found
......@@ -190,6 +190,7 @@ void smote(const SampleVectorType& inSamples,
findKNNIndices(inSamples, nbNeighbors, nnVector);
// The input samples are selected randomly with replacement
std::srand(seed);
#pragma omp parallel for
for(size_t i=0; i<nbSamples; ++i)
{
const auto sampleIdx = std::rand()%nbSamples;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment