int gradescent_compute_expectations

(model* mo, double** alpha,
  double** beta,
  double* scale, int* seq,
  int seq_len,
  double** matrix_b,
  double* matrix_a,
  double* vec_pi)

computes matrices of n and m variables (expected values for how often a certain parameter from A or B is used) computes Baum-Welch variables implicit

Documentation

computes matrices of n and m variables (expected values for how often a certain parameter from A or B is used) computes Baum-Welch variables implicit
Parameters:
mo - : pointer to a model
alpha - : matrix of forward variables
backward - : matrix of backward variables
scale - : scaling vector from forward-backward-algorithm
seq - : sequence in internal representation
seq_len - : length of sequence
matrix_b - : matrix for parameters from B (n_b or m_b)
matrix_a - : matrix for parameters from A (n_a or m_a)
vec_pi - : vector for parameters in PI (n_pi or m_pi)
Returns:
0/-1 success/error

Alphabetic index



This page was generated with the help of DOC++.