Skip to content

Commit

Permalink
Fixed bug where emission function was wrongly being incorporated into…
Browse files Browse the repository at this point in the history
… transition model
  • Loading branch information
adarshp committed May 7, 2018
1 parent 67ea4a3 commit f8f3594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion delphi/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def sample_sequence(CAG: DiGraph, s0: np.ndarray,
n_steps: int, Δt: float = 1.0) -> List[np.ndarray]:

A = sample_transition_matrix(CAG, Δt).values
return take(n_steps, iterate(lambda s: emission_function(A @ s), s0))
return take(n_steps, iterate(lambda s: A @ s, s0))


def sample_sequences(CAG: DiGraph, s0: Series, steps: int, samples: int,
Expand Down

0 comments on commit f8f3594

Please sign in to comment.