Skip to content
Snippets Groups Projects
Commit 967b31d1 authored by Manuel Günther's avatar Manuel Günther
Browse files

Added warning when replacing empty mean

parent a46e35c9
No related branches found
No related tags found
1 merge request!31WIP: Resolve "KMeans returns NaNs"
Pipeline #
......@@ -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";
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment