Upload FIMMJP
Browse files
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="
|
163 |
),
|
164 |
"intensity_matrices_variance": create_matrix_from_off_diagonal(
|
165 |
-
torch.exp(pred_offdiag_im_logvar),
|
|
|
|
|
|
|
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 |
}
|