# Are sparse transition matrices possible with tfp's Hidden Markov Model

**URL:** <https://discuss.ai.google.dev/t/are-sparse-transition-matrices-possible-with-tfps-hidden-markov-model/28757>\
**Category:** General Discussion\
**Tags:** tf-probability\
**Created:** [July 26, 2022, 2:19am UTC](https://discuss.ai.google.dev/t/are-sparse-transition-matrices-possible-with-tfps-hidden-markov-model/28757 "2022-07-26T02:19:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![inf](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/inf/32/12750_2.png) [@inf](https://discuss.ai.google.dev/u/inf)\
**Post date:** [July 26, 2022, 2:19am UTC](https://discuss.ai.google.dev/t/are-sparse-transition-matrices-possible-with-tfps-hidden-markov-model/28757/1 "2022-07-26T02:19:47Z")

</div>

Would anyone know if it’s feasible to have sparse transition matrices as part of tfp’s Hidden Markov Model implementation? I had also created a FR [Feature request / implementation guidance: Sparse HMM transition matrices · Issue #1585 · tensorflow/probability · GitHub](https://github.com/tensorflow/probability/issues/1585) but received no replies on it.

I’ve tried to feed in LinearOperators and tf’s Sparse Tensors but it seems like deeper changes are needed for this - would anyone know how feasible such an effort would be?
