Skip to content

Commit

Permalink
[fix] wrong axis for qC diploid init
Browse files Browse the repository at this point in the history
  • Loading branch information
toyo97 committed Oct 25, 2023
1 parent dbbe800 commit 37c23af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/variational_distributions/var_dists.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def _init_diploid(self, nodes: list, skewness=5.):
root_startprob = torch.ones(self.config.n_states)
root_startprob[2] = skewness
root_transmat = torch.ones((self.config.n_states, self.config.n_states))
root_transmat[2, :] = skewness
root_transmat[:, 2] = skewness
# normalize and log-transform
self.eta1[nodes, :] = root_startprob - torch.logsumexp(root_startprob, dim=-1, keepdim=True)
normalized_log_transmat = root_transmat - torch.logsumexp(root_transmat, dim=-1, keepdim=True)
Expand Down

0 comments on commit 37c23af

Please sign in to comment.