From 47201287306671b0c4cb70b2d65f5e00f577479d Mon Sep 17 00:00:00 2001 From: jaysonjeg Date: Wed, 1 Dec 2021 22:19:51 +1100 Subject: [PATCH 1/3] changed line 17 to rng(1), (for reproducibility) --- train/initGamma_random.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/train/initGamma_random.m b/train/initGamma_random.m index 4269fb4..3498f89 100644 --- a/train/initGamma_random.m +++ b/train/initGamma_random.m @@ -14,7 +14,8 @@ if nargin < 7, priorOFFvsON = 3; end rng('default') -rng('shuffle') % make this "truly" random +%rng('shuffle') % make this "truly" random +rng(1); % Form transition probability matrix if nessmodel From b9079cf1126e226215eae483be47f1905b32278f Mon Sep 17 00:00:00 2001 From: jaysonjeg Date: Wed, 1 Dec 2021 22:20:53 +1100 Subject: [PATCH 2/3] lines 109-113, deleted last parameter options.priorOFFvsON --- train/hmmmar_init.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train/hmmmar_init.m b/train/hmmmar_init.m index 1166a7e..61f2156 100644 --- a/train/hmmmar_init.m +++ b/train/hmmmar_init.m @@ -109,7 +109,7 @@ Gamma = initGamma_random(T-options.maxorder,options.K,... min(median(double(T))/10,500),... options.Pstructure,options.Pistructure,... - options.nessmodel,options.priorOFFvsON); + options.nessmodel); hmm = struct('train',struct()); hmm.K = options.K; hmm.train = options; From 66da55e5a369b7d7ac60efb8935d359932a8f3ba Mon Sep 17 00:00:00 2001 From: jaysonjeg Date: Wed, 1 Dec 2021 22:21:52 +1100 Subject: [PATCH 3/3] to prevent error with padGamma --- utils/general/padGamma.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/utils/general/padGamma.m b/utils/general/padGamma.m index b7b7c04..f4e226e 100644 --- a/utils/general/padGamma.m +++ b/utils/general/padGamma.m @@ -24,7 +24,11 @@ T = cell2mat(T); end -K = size(Gamma,2); offset = sum(d); N = length(T); Tshifted = T - offset; +K = size(Gamma,2); +%offset = sum(d); +N = length(T); +%Tshifted = T - offset; +Tshifted=T; if do_upsample r = options.downsample / options.Fs; @@ -56,4 +60,4 @@ -end \ No newline at end of file +end