pmtk3 icon indicating copy to clipboard operation
pmtk3 copied to clipboard

Problem with hmmFitFullyObs function

Open ido opened this issue 11 years ago • 0 comments

From [email protected] on December 10, 2010 01:13:55

What steps will reproduce the problem? %% generate observation sequence and hidded state sequence using Matlab %% HMM toolbox TRANS = [.9 .1; .05 .95;];

EMIS = [1/6, 1/6, 1/6, 1/6, 1/6, 1/6;... 7/12, 1/12, 1/12, 1/12, 1/12, 1/12];

[seq,states] = hmmgenerate(10000,TRANS,EMIS);

%% test hmmFit function of pmtk3 [model, loglikHist] = hmmFit(seq, 2, 'discrete'); model.emission.T % good model.A % good

%% test hmmFitFullyObs function of pmtk3 model = hmmFitFullyObs(states, seq, 'discrete'); model.emission.T % problem: all elements of this matrix are "1" model.A % good What is the expected output? What do you see instead? All elements of model.emission.T generated by hmmFitFullyObs function are "1", which I think is not correct. What version / revision of the product are you using? On what operating system? pmtk3-23nov10, Matlab 2009b, Win XP sp3 Please provide any additional information below.

Attachment: test_hmmFitFullyObs.m

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

ido avatar Jan 04 '14 01:01 ido