pmtk3 icon indicating copy to clipboard operation
pmtk3 copied to clipboard

problem with multinomial_prob in hmm toolbox

Open ido opened this issue 11 years ago • 0 comments

From [email protected] on May 31, 2012 14:56:20

What steps will reproduce the problem? 1. 2. 3. What is the expected output? What do you see instead? Attempted to access obsmat(:,3116); index out of bounds because size(obsmat)=[2560,2560].

Error in ==> multinomial_prob at 19 B(:,t) = obsmat(:, data(t));

Error in ==> dhmm_em>compute_ess_dhmm at 103 obslik = multinomial_prob(obs, obsmat);

Error in ==> dhmm_em at 47 [loglik, exp_num_trans, exp_num_visits1, exp_num_emit] = ...

Error in ==> Markov_Model at 72 [LL,prior_hat,A_hat,B_hat] = dhmm_em(signal+1, prior,A1,B1, 'max_iter',4); What version / revision of the product are you using? On what operating system? Matlab R2011a , Windows 7 Please provide any additional information below. I checked the multinomial_prob function from which the error seems to have been generated and found for t=1:T B(:,t) = obsmat(:, data(t)); end This doesn't make sense to me. Why does the observed value of my data have to be less than the dimensions of my output matrix? (Thats the root of the problem as far as I understand)

Original issue: http://code.google.com/p/pmtk3/issues/detail?id=41

ido avatar Jan 04 '14 01:01 ido