Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Bayesian Hidden Markov model got an unexpected keyword argument 'desc' #1604

Open
ShenWenHuibit opened this issue Jun 24, 2023 · 1 comment

Comments

@ShenWenHuibit
Copy link

When I want to analyze Hidden Markov Network, I have the following problem

hmm=pyemma.msm.bayesian_hidden_markov_model(dtrajs,5, lag=30,stride=10, mincount_connectivity=0.2)

Sampling HMSMs: 0%| | 0/100 [00:00<?, ?it/s]Traceback (most recent call last):
File "/home/xhshi/whshen/vscode/FDM-openmm-MSM/1PGB/rmsd3.0/pyemma/hmm.py", line 42, in
hmm=pyemma.msm.bayesian_hidden_markov_model(dtrajs,5, lag=30,stride=10, mincount_connectivity=0.02)
File "/home/xhshi/whshen/anaconda3/envs/workshop/lib/python3.9/site-packages/pyemma/msm/api.py", line 1375, in bayesian_hidden_markov_model
return bhmsm_estimator.estimate(dtrajs)
File "/home/xhshi/whshen/anaconda3/envs/workshop/lib/python3.9/site-packages/pyemma/_base/estimator.py", line 418, in estimate
self._model = self._estimate(X)
File "/home/xhshi/whshen/anaconda3/envs/workshop/lib/python3.9/site-packages/pyemma/msm/estimators/bayesian_hmsm.py", line 313, in _estimate
estimator.fit(dtrajs, n_burn_in=0, n_thin=1, progress=progress)
File "/home/xhshi/whshen/anaconda3/envs/workshop/lib/python3.9/site-packages/deeptime/base.py", line 417, in call
return self.fit_method(*args, **kwargs)
File "/home/xhshi/whshen/anaconda3/envs/workshop/lib/python3.9/site-packages/deeptime/markov/hmm/_bayesian_hmm.py", line 610, in fit
for _ in progress(range(self.n_samples), desc="Drawing samples", leave=False):
TypeError: init() got an unexpected keyword argument 'desc'
Sampling HMSMs: 0%| | 0/100 [11:47<?, ?it/s]

How can I solve this problem, thanks.

@D16ERG
Copy link

D16ERG commented Aug 28, 2023

I encountered the same issue. Although this issue was also later mentioned in #1610 ; it has not been resolved AFAIK.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants