Commit 967b31d1 authored by Manuel Günther's avatar Manuel Günther

Added warning when replacing empty mean

parent a46e35c9
Pipeline #11623 passed with stages
in 39 minutes and 45 seconds
......@@ -11,6 +11,7 @@
#include <boost/random.hpp>
#include <bob.core/random.h>
#include <bob.core/logging.h>
#include <set>
......@@ -223,6 +224,7 @@ void bob::learn::em::KMeansTrainer::mStep(bob::learn::em::KMeansMachine& kmeans,
means(i,blitz::Range::all()) = ar(index, blitz::Range::all());
// and remember that we already chose this mean
random_samples.insert(index);
bob::core::warn << "Replacing empty mean with random sample " << index << " from data";
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment