Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!20Updated the default variance flooring in the Gaussian class
Pipeline #
......@@ -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
......
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