Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions model/modelmixture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4177,6 +4177,7 @@ double ModelMixture::optimizeWithEM(double gradient_epsilon) {
// EM algorithm loop described in Wang, Li, Susko, and Roger (2008)
for (step = 0; step < optimize_steps; step++) {
// first compute _pattern_lh_cat
phylo_tree->clearAllPartialLH();
score = phylo_tree->computePatternLhCat(WSL_MIXTURE);

if (score < prev_score + gradient_epsilon)
Expand Down Expand Up @@ -4254,6 +4255,7 @@ double ModelMixture::optimizeWithEM(double gradient_epsilon) {

if (c>0 && !Params::getInstance().optimize_linked_gtr) {
// compute _pattern_lh_cat
phylo_tree->clearAllPartialLH();
phylo_tree->computePatternLhCat(WSL_MIXTURE);
// update the posterior probabilities of each category
for (ptn = 0; ptn < nptn; ptn++) {
Expand Down
Loading