fix(stats): refuse a zero-probability sequence in Viterbi
Assisted-by: GLM 5.3 Flash
This commit is contained in:
@@ -25,6 +25,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- `FitHiddenMarkovModel` fits a single-observation sequence instead of
|
||||
crashing the process: a transition row with no evidence keeps its
|
||||
previous estimate rather than dividing by zero.
|
||||
- `Viterbi` refuses a sequence of probability zero under the model,
|
||||
the same refusal `Forward` makes, instead of returning a meaningless
|
||||
path beside a log probability of -Inf.
|
||||
|
||||
## [1.0.0] - 2026-09-03
|
||||
|
||||
|
||||
Reference in New Issue
Block a user