@Test public void testGetSymbolEmissionProbabilities() { System.out.println("getSymbolEmissionProbabilities"); HMM hmm = new HMM(pi, new Matrix(a), new Matrix(b)); Matrix result = hmm.getSymbolEmissionProbabilities(); for (int i = 0; i < b.length; i++) { for (int j = 0; j < b[i].length; j++) { assertEquals(b[i][j], result.get(i, j), 1E-7); } } }
public Matrix getSymbolEmissionProbabilities() { return b; }
HMM implements Serializable { public Matrix getSymbolEmissionProbabilities() { return b; } }
HMM implements Serializable { public Matrix getSymbolEmissionProbabilities() { return b; } HMM(double[] pi, Matrix a, Matrix b); }
HMM implements Serializable { public Matrix getSymbolEmissionProbabilities() { return b; } HMM(double[] pi, Matrix a, Matrix b); double[] getInitialStateProbabilities(); Matrix getStateTransitionProbabilities(); Matrix getSymbolEmissionProbabilities(); double p(int[] o, int[] s); double logp(int[] o, int[] s); double p(int[] o); double logp(int[] o); int[] predict(int[] o); static HMM fit(int[][] observations, int[][] labels); static HMM fit(T[][] observations, int[][] labels, ToIntFunction<T> ordinal); void update(T[][] observations, int iterations, ToIntFunction<T> ordinal); void update(int[][] observations, int iterations); @Override String toString(); }
HMM implements Serializable { public Matrix getSymbolEmissionProbabilities() { return b; } HMM(double[] pi, Matrix a, Matrix b); double[] getInitialStateProbabilities(); Matrix getStateTransitionProbabilities(); Matrix getSymbolEmissionProbabilities(); double p(int[] o, int[] s); double logp(int[] o, int[] s); double p(int[] o); double logp(int[] o); int[] predict(int[] o); static HMM fit(int[][] observations, int[][] labels); static HMM fit(T[][] observations, int[][] labels, ToIntFunction<T> ordinal); void update(T[][] observations, int iterations, ToIntFunction<T> ordinal); void update(int[][] observations, int iterations); @Override String toString();  }