tensorflow / tensorflow/probability
Feature request / implementation guidance: Sparse HMM transition matrices
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 4.4k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
I'd like to extend the hidden Markov model implementation so that it can handle transition matrices that are very sparse.
For my usecase, I'd like to extend it such that computations with thousands of states are possible (where most transitions are impossible). This will also aid in resolution of https://github.com/tensorflow/probability/issues/1435 as it's possible to approximate HSMMs as HMMs [R. Langrock, W. Zucchini, 2011].
Questions:
- Would anyone know how feasible it is to achieve this and if this would provide gains over the current implementation?
- What would this involve? Would it be possible to use tensorflow's sparse tensors or perhaps linear operators?
- Would any help be possible? No worries if not, but I would love pointers on how to get started on this.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the existing hidden Markov model implementation and how it represents transition matrices. Investigate whether TensorFlow sparse tensors or linear operators can support the requested computations, using the HSMM approximation context and issue #1435 as background. Done would mean enabling efficient HMM computations with thousands of states and very sparse transitions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- tensorflow
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100