Package com.nr.ci

Examples of com.nr.ci.HMM.forwardbackward()


      }
    }

    // Try to discover the model, given the symbols
    HMM hmm=new HMM(atrans,b,symbols);
    hmm.forwardbackward();

    // Inspect results
    int jmax=0,ncorrect=0;
    double test;
    for (i=0;i<N;i++) {
View Full Code Here


//    System.out.println("Log-likelihood: %f\n", hmm.loglikelihood());

    // Test Baum-Welch reestimation
    for (i=0;i<100;i++) {
      hmm.baumwelch();
      hmm.forwardbackward();
//      System.out.println("Log-likelihood: %f\n", hmm.loglikelihood());
    }

    // Inspect reconstructed transition matrix
    ncorrect=0;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.