function [na, nb, npi] = trainon(a, b, pi, o);

[P alpha] = hmmforward(a, pi, b, o);
beta = hmmbackward(a,pi,b,o);
[na npi nb] = hmmlearn(a, pi, b, o, alpha, beta);
