yasumasamiyamoto / pmtk3

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

Problem with hmmFitFullyObs function #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by Leo.Shi...@gmail.com on 10 Dec 2010 at 6:13

Attachments:

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

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

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

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