We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3d3ba8 commit ddd02e6Copy full SHA for ddd02e6
sc2ts/inference.py
@@ -801,7 +801,12 @@ def solve_num_mismatches(ts, k):
801
r = 1e-3
802
mu = 1e-20
803
else:
804
- mu = 1e-6
+ # NOTE: the magnitude of mu matters because it puts a limit
805
+ # on how low we can push the HMM precision. We should be able to solve
806
+ # for the optimal value of this parameter such that the magnitude of the
807
+ # values within the HMM are as large as possible (so that we can truncate
808
+ # usefully). This value is probably close for k=3 (it fails for k=2).
809
+ mu = 1e-2
810
denom = (1 - mu) ** k + (n - 1) * mu**k
811
r = n * mu**k / denom
812
assert mu < 0.5
0 commit comments