Commit 908b1efb authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Merge branch 'issue-23' into 'master'

Updated the default variance flooring in the Gaussian class

Merge related with issue #23

See merge request !20
parents 71f128cb 7b87897f
Pipeline #6310 passed with stages
in 8 minutes and 31 seconds
......@@ -31,7 +31,6 @@ void bob::learn::em::GMMBaseTrainer::initialize(bob::learn::em::GMMMachine& gmm)
{
// Allocate memory for the sufficient statistics and initialise
m_ss->resize(gmm.getNGaussians(),gmm.getNInputs());
gmm.setVarianceThresholds(this->m_mean_var_update_responsibilities_threshold);
}
void bob::learn::em::GMMBaseTrainer::eStep(bob::learn::em::GMMMachine& gmm,
......
......@@ -84,7 +84,7 @@ void bob::learn::em::Gaussian::resize(const size_t n_inputs) {
m_variance.resize(m_n_inputs);
m_variance = 1;
m_variance_thresholds.resize(m_n_inputs);
m_variance_thresholds = 0;
m_variance_thresholds = std::numeric_limits<double>::epsilon();
// Re-compute g_norm, because m_n_inputs and m_variance
// have changed
......
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