cvejoski commited on
Commit
9637da5
1 Parent(s): c686e91

Upload FIMMJP

Browse files
Files changed (1) hide show
  1. mjp.py +5 -2
mjp.py CHANGED
@@ -159,10 +159,13 @@ class FIMMJP(AModel):
159
 
160
  out = {
161
  "intensity_matrices": create_matrix_from_off_diagonal(
162
- pred_offdiag_im_mean, self.n_states, mode="sum_row", n_states=self.n_states if n_states is None else n_states
163
  ),
164
  "intensity_matrices_variance": create_matrix_from_off_diagonal(
165
- torch.exp(pred_offdiag_im_logvar), self.n_states, mode="sum_row", n_states=self.n_states if n_states is None else n_states
 
 
 
166
  ),
167
  "initial_condition": init_cond,
168
  }
 
159
 
160
  out = {
161
  "intensity_matrices": create_matrix_from_off_diagonal(
162
+ pred_offdiag_im_mean, self.n_states, mode="negative_sum_row", n_states=self.n_states if n_states is None else n_states
163
  ),
164
  "intensity_matrices_variance": create_matrix_from_off_diagonal(
165
+ torch.exp(pred_offdiag_im_logvar),
166
+ self.n_states,
167
+ mode="negative_sum_row",
168
+ n_states=self.n_states if n_states is None else n_states,
169
  ),
170
  "initial_condition": init_cond,
171
  }