fix(stats): refuse a zero-probability sequence in Viterbi

Assisted-by: GLM 5.3 Flash
This commit is contained in:
2026-09-27 15:41:19 +02:00
parent e507adeb64
commit 2f9358c512
3 changed files with 35 additions and 0 deletions
+3
View File
@@ -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