Skip to content

Might be nice to use a Dirichlet distribution to generate the parameters of the HMM randomly #7

@awillats

Description

@awillats

When picking transition and emission probabilities, I generally hard-code these. That makes it harder to generate systems of arbitrary size for debugging. It also means we're less likely to see things like very low transition probabilities which can cause numerical issues for decoding.

Using a dirichlet distribution, we'd be able to set these parameters randomly every time.

https://en.wikipedia.org/wiki/Dirichlet_distribution

possible C++ implementation:
https://github.com/gcant/dirichlet-cpp

Downside: likely requires an additional library just for debugging

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions