The previous version of the code was averaging alpha's, which sum to 1, in log space instead of in "regular" space. This resulted in alpha coefficients which did not sum to 1 anymore.
The following pull request merges the log alpha's before normalization, which fixes the problem.
The previous version of the code was averaging alpha's, which sum to 1, in log space instead of in "regular" space. This resulted in alpha coefficients which did not sum to 1 anymore.
The following pull request merges the log alpha's before normalization, which fixes the problem.