jmschrei / yahmm

Yet Another Hidden Markov Model repository.
MIT License
249 stars 32 forks source link

Forward-Backward handling on impossible sequences #11

Closed jmschrei closed 10 years ago

jmschrei commented 10 years ago

As discovered in #10 , forward-backward will return -INF when given an impossible sequence, as opposed to returning a matrix. Is this okay, or should it return something of the matrix form so that it doesn't crash someones program?

nipunbatra commented 10 years ago

I would say that the i/p and o/p interfaces b/w different components should always remain consistent. Infact, this is also something which needs to be added soon to the docstring.

jmschrei commented 10 years ago

Added into v0.1.3