Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bayesian Markov models give different MFPT #278

Closed
ShenWenHuibit opened this issue Aug 19, 2023 · 0 comments
Closed

Bayesian Markov models give different MFPT #278

ShenWenHuibit opened this issue Aug 19, 2023 · 0 comments

Comments

@ShenWenHuibit
Copy link

from deeptime.markov import TransitionCountEstimator
from deeptime.markov.msm import BayesianMSM
counts_estimator = TransitionCountEstimator(lagtime=LAGtime, count_mode='effective')
counts = counts_estimator.fit_fetch(dtrajs).submodel_largest()
b_msm_estimator = BayesianMSM()
b_msm = b_msm_estimator.fit_fetch(counts)

from deeptime.markov import pcca
nstates = 4
Bayesian_pcca = pcca(b_msm.prior.transition_matrix, nstates)

print(b_msm.prior.mfpt(Bayesian_pcca.sets[0],Bayesian_pcca.sets[1]))
>>283.0460513163462
print(b_msm.evaluate_samples('mfpt',A=[0],B=[1]).mean())
>>768.3398675145543

Please help me to see what is wrong thanks.

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

No branches or pull requests

1 participant