当我setup the model ( e.g. GaussianHMM()
in hmmlearn.hmm
)?
transmat_
和transmat_prior
之间的区别吗?
class hmmlearn.hmm.GaussianHMM( n_components = 1,
covariance_type = 'diag',
min_covar = 0.001,
startprob_prior = 1.0,
transmat_prior = 1.0,
means_prior = 0,
means_weight = 0,
covars_prior = 0.01,
covars_weight = 1,
algorithm = 'viterbi',
random_state = None,
n_iter = 10,
tol = 0.01,
verbose = False,
params = 'stmc',
init_params = 'stmc'
)
对于参数startprob_prior
和startbrob_
?
答案 0 :(得分:1)
根据我的理解,transmat_prior
是您可以指定的转换矩阵的初始值(它将用于初始化迭代参数估计算法)。它是该类的参数。
transmat_
是类GaussianHMM
的对象的属性,它在训练后给出转换矩阵的值。这不是你自己输入的东西,而是估算过程的结果。