surjit84 / pmtk3

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

dgmFit crashes on ragged localev inputs #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
dgmFit is supposed to handle missing local evidence, but currently crashes if 
you pass it a ragged array. 

Original issue reported on code.google.com by mattbdun...@gmail.com on 11 Aug 2010 at 1:55

GoogleCodeExporter commented 9 years ago
% This code should work, but fails:
nstates = 3; 
d = 6;
hmm = mkRndGaussHmm(nstates, d);
data = hmmSample(hmm, 30, 5);
dgm = hmmToDgm(hmm, 30); 
localev = hmmObs2LocalEv(data); 
localev(:, 3, 5) = NaN; 
dgmFit(dgm, 'localev', localev)

Original comment by mattbdun...@gmail.com on 11 Aug 2010 at 2:10

GoogleCodeExporter commented 9 years ago

Original comment by mattbdun...@gmail.com on 11 Aug 2010 at 5:18