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

Hmm step prediction #1295

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

hendriksanta
Copy link

@hendriksanta hendriksanta commented Apr 7, 2021

Hello,
my first attempt at a pull request for tf probability - given a (pre-trained/ configured) HMM and an additional observation point, the function single_step_prediction outputs the probability over the hidden states (as a categorical distribution) and also returns a prediction for the next observed value (as a probs-weighted mean of the possible observation distributions).

In the initial step this is effectively the posterior_marginal (of the initial observation point). In a subsequent step, the function can then take the previous probability over hidden states (its output from the previous step) as a prior and a new observation point to update the probability over hidden states.
This way the function can be used to employ a trained HMM to make continuous predictions based on a stream of incoming (new) observation points.

Any suggestions/ tips as to what needs to be improved/ added very much appreciated.
Many thanks!

@google-cla google-cla bot added the cla: yes Declares that the user has signed CLA label Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Declares that the user has signed CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant