Skip to content

Instantly share code, notes, and snippets.

@cjfields
Created August 14, 2009 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjfields/167860 to your computer and use it in GitHub Desktop.
Save cjfields/167860 to your computer and use it in GitHub Desktop.
cjfields4:HMM cjfields$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
Baum-Welch Training
===================
S should be monotonic increasing!
make: *** [test_dynamic] Error 255
cjfields4:HMM cjfields$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
Baum-Welch Training
===================
Initial Probability Array:
0.499998 0.500002
Transition Probability Matrix:
0.499998 0.500002
0.499998 0.500002
Emission Probability Matrix:
0.133333 0.143333 0.163333 0.123333 0.143333 0.293333
0.133333 0.143333 0.163333 0.123333 0.143333 0.293333
Log Probability of sequence 1: -521.808
Log Probability of sequence 2: -426.057
Statistical Training
====================
Initial Probability Array:
1 0
Transition Probability Matrix:
0.970732 0.0292683
0.0638298 0.93617
Emission Probability Matrix:
0.160194 0.174757 0.179612 0.160194 0.160194 0.165049
0.0744681 0.0744681 0.12766 0.0425532 0.106383 0.574468
Vitebi Algorithm:
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFLLLLLLLLLLLLLLLLLLLLLFFFFFFFFFFFFLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLFFFFFFFFFFFFFFFFFLLLLLLLLLLLFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFLLLLLLLLLLLLLFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFLLLLLLLLLLLLLLLLLLLLLLFFFFFFFFFFF
cjfields4:HMM cjfields$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment