{"action":"created","issue":{"url":"https://api.github.com/repos/mlpack/mlpack/issues/1538","repository_url":"https://api.github.com/repos/mlpack/mlpack","labels_url":"https://api.github.com/repos/mlpack/mlpack/issues/1538/labels{/name}","comments_url":"https://api.github.com/repos/mlpack/mlpack/issues/1538/comments","events_url":"https://api.github.com/repos/mlpack/mlpack/issues/1538/events","html_url":"https://github.com/mlpack/mlpack/issues/1538","id":371674481,"node_id":"MDU6SXNzdWUzNzE2NzQ0ODE=","number":1538,"title":"Wrong HMM predict (state sequence) and LogLikelihood","user":{"login":"aabghari","id":44274379,"node_id":"MDQ6VXNlcjQ0Mjc0Mzc5","avatar_url":"https://avatars3.githubusercontent.com/u/44274379?v=4","gravatar_id":"","url":"https://api.github.com/users/aabghari","html_url":"https://github.com/aabghari","followers_url":"https://api.github.com/users/aabghari/followers","following_url":"https://api.github.com/users/aabghari/following{/other_user}","gists_url":"https://api.github.com/users/aabghari/gists{/gist_id}","starred_url":"https://api.github.com/users/aabghari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aabghari/subscriptions","organizations_url":"https://api.github.com/users/aabghari/orgs","repos_url":"https://api.github.com/users/aabghari/repos","events_url":"https://api.github.com/users/aabghari/events{/privacy}","received_events_url":"https://api.github.com/users/aabghari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-18T19:21:21Z","updated_at":"2018-10-18T21:50:06Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI have a HMM model. Sometime the state sequence estimation is wrong which all the states are zero for  example. I have checked the output with a python hmm implementation hmmlearn. hmmlearn seems to give the right answers for the same model and parameters. I have attached a cpp file which uses MLPACK and a python file which uses hmmlearn. Both have the same parameters and observation. I have put enough comment in the cpp file to follow. The version of the MLPACK is 3.0.3.\r\n\r\nThanks,\r\n\r\nArash\r\n[hmm_test.zip](https://github.com/mlpack/mlpack/files/2493314/hmm_test.zip)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mlpack/mlpack/issues/comments/431176038","html_url":"https://github.com/mlpack/mlpack/issues/1538#issuecomment-431176038","issue_url":"https://api.github.com/repos/mlpack/mlpack/issues/1538","id":431176038,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTE3NjAzOA==","user":{"login":"aabghari","id":44274379,"node_id":"MDQ6VXNlcjQ0Mjc0Mzc5","avatar_url":"https://avatars3.githubusercontent.com/u/44274379?v=4","gravatar_id":"","url":"https://api.github.com/users/aabghari","html_url":"https://github.com/aabghari","followers_url":"https://api.github.com/users/aabghari/followers","following_url":"https://api.github.com/users/aabghari/following{/other_user}","gists_url":"https://api.github.com/users/aabghari/gists{/gist_id}","starred_url":"https://api.github.com/users/aabghari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aabghari/subscriptions","organizations_url":"https://api.github.com/users/aabghari/orgs","repos_url":"https://api.github.com/users/aabghari/repos","events_url":"https://api.github.com/users/aabghari/events{/privacy}","received_events_url":"https://api.github.com/users/aabghari/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T21:50:06Z","updated_at":"2018-10-18T21:50:06Z","author_association":"NONE","body":"I think I know why it happens. The problem is the numerical instability when calculating logStateProb. I am going to provide you with a patch."}}
{"actor":{"display_login":"aabghari"}}