Example usage for org.apache.mahout.classifier.sequencelearning.hmm HmmModel HmmModel

List of usage examples for org.apache.mahout.classifier.sequencelearning.hmm HmmModel HmmModel

Introduction

In this page you can find the example usage for org.apache.mahout.classifier.sequencelearning.hmm HmmModel HmmModel.

Prototype

public HmmModel(int nrOfHiddenStates, int nrOfOutputStates) 

Source Link

Document

Construct a valid random Hidden-Markov parameter set with the given number of hidden and output states.

Usage

From source file:org.eclipse.tracecompass.internal.totalads.algorithms.hiddenmarkovmodel.HmmMahout.java

License:Open Source License

/**
 * Initializes Hidden Markov Model with random initial probabilities
 *
 * @param numSymbols//from   www. ja va 2 s.  c  o m
 *            number of symbols
 * @param numStates
 *            Number of states
 *
 */
public void initializeHMM(int numSymbols, int numStates) {

    fHmm = new HmmModel(numStates, numSymbols);

}