Zara60 / pmtk3

Automatically exported from code.google.com/p/pmtk3
MIT License
0 stars 1 forks source link

problem with multinomial_prob in hmm toolbox #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by sumangir...@gmail.com on 31 May 2012 at 6:56

GoogleCodeExporter commented 9 years ago
Moved to GitHub: https://github.com/probml/pmtk3/issues/41

Original comment by irosen on 4 Jan 2014 at 2:36