Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
awillats opened this issue Mar 17, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@awillats
Copy link
Collaborator

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

@awillats awillats added the enhancement New feature or request label Mar 17, 2021
@awillats awillats self-assigned this Mar 17, 2021
@awillats
Copy link
Collaborator Author

awillats commented May 5, 2021

Could also be accomplished by generating matrix randomly, then normalizing rows to sum to 1. This is what Kevin Murphy's HMM toolbox does. That approach is less direct and less flexible, but simple to implement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant