-
Notifications
You must be signed in to change notification settings - Fork 121
Continuous time MSM #951
Comments
This has been on our lists, but we hadn't had the time to finish it yet. I think it would also be relatively straightforward to wire it into Am 01/10/16 um 20:45 schrieb MamtaMohan:
Prof. Dr. Frank Noe Phone: (+49) (0)30 838 75354 Mail: Arnimallee 6, 14195 Berlin, Germany |
Thank you. Appreciate your response. I will give a try. Mamta |
Hi Mamta, hi Frank, the continuous time estimator that is implemented in the pull request markovmodel/msmtools#57 is functional. To use the estimator as quick as possible, you could replace your version of msmtools with the version from my branch: https://github.com/fabian-paul/msmtools/tree/ratematrix The rate-matrix estimator is available after importing msmtools as Best, |
most of these additional features (Implied Timescales and CKTest) would Can we merge the PR in msmtools to have the basic functionality and Am 03/10/16 um 04:19 schrieb fabian-paul:
Prof. Dr. Frank Noe Phone: (+49) (0)30 838 75354 Mail: Arnimallee 6, 14195 Berlin, Germany |
I see. If we implement it as a Model with .timescales() and .propagate() we get much for free. Yes the PR is ready to merge. It was on halt for two reasons:
|
I agree. Let's go ahead, we can always swap out code if useful, but for Am 03/10/16 um 14:26 schrieb fabian-paul:
Prof. Dr. Frank Noe Phone: (+49) (0)30 838 75354 Mail: Arnimallee 6, 14195 Berlin, Germany |
Matma, the msmtools code is merged. You can find the low-level functionality in |
@MamtaMohan you can now use msmtools-1.2 for rate matrix estimation |
Thank you Frank. I will wait few days. Mamta From: Frank Noe [email protected] Matma, the msmtools code is merged. You can find the low-level functionality in msmtools.estimation.rate_matrix if you install from github. If you want to use the released version, wait a few days until the new msmtools release is cut. You are receiving this because you authored the thread. |
the binaries the released version are also available ;)
just do a conda update msmtools
|
Thank you Martin. I was waiting for conda release. Appreciate it. Mamta From: Martin K. Scherer [email protected] the binaries the released version are also available ;) just do a conda update msmtools You are receiving this because you were mentioned. |
Dear Fabian, I was caught up with things so writing to after a delay. I am new to lot of things so please be patient with me. I just want basic Continuous Markov Model, functionality for it there now. Please correct me where ever you think I am off. To make Continuous Markov Model, Using PentaPeptide test files and tutorial and following script But Isn't msmtools is already loaded with PyEmma? As per you suggested : The rate-matrix estimator is available after importing msmtools as I tried [83]: import msmtools as msmtools.estimation.estimate_rate_matrix import msmtools as MT In [87]: MC = MT.estimation.estimate_rate_matrix(dtrajs, msm_lag)AttributeError Traceback (most recent call last) AttributeError: 'module' object has no attribute 'estimate_rate_matrix' Last command I think is part of PyEMMA so it is not suppose to work. So could you please guide me how to import the required module. If you can point out calls in tutorial It will help. |
Hi, you may need to update msmtools: then your import statement should work as this: or Am 16/11/16 um 02:50 schrieb MamtaMohan:
Prof. Dr. Frank Noe Phone: (+49) (0)30 838 75354 Mail: Arnimallee 6, 14195 Berlin, Germany |
Dear Frank, I will try your suggestion again as you mentioned. I updated PyEMMA before I started via conda update and following packages were updated:
The following NEW packages will be INSTALLED:
The following packages will be UPDATED:
|
then I guess you should have an msmtools that includes the feature Am 16/11/16 um 13:43 schrieb MamtaMohan:
Prof. Dr. Frank Noe Phone: (+49) (0)30 838 75354 Mail: Arnimallee 6, 14195 Berlin, Germany |
Hi Mamta, The comments above are a bit out-dated. We renamed the method in msmtools to Best, |
ok. Let me give it a try and let me get back to you. |
On 11/16/2016 03:46 AM, Frank Noe wrote:
To easily get a correct (connected count matrix) you can first estimate an msm via msmtools.estimation.rate_matrix(msm.count_matrix_active) |
Yes, correct. Note that estimation of the rate matrix on a fine clustering that MSMs Am 17/11/16 um 13:40 schrieb Martin K. Scherer:
Prof. Dr. Frank Noe Phone: (+49) (0)30 838 75354 Mail: Arnimallee 6, 14195 Berlin, Germany |
Thank you. Hopefully I will be able to get this today or tomorrow and I will get back to you. |
Sorry for the delay. This is what I understand from the discussion: For Continuous Markov Model: Just listing part of output. If you can help me fix this I would appreciate it. |
Hi Mamta, apologies for the long delay. I had some time to dig into this error only now. I created a pull request with a tentative fix on markovmodel/msmtools#98 Fabian |
Dear Fabian,
Thank you for your response.
I will try the fix.
If you want I can wait a bit.
Mamta
…________________________________
From: fabian-paul <[email protected]>
Sent: Monday, January 02, 2017 1:01:10 PM
To: markovmodel/PyEMMA
Cc: Mohan, Mamta; Mention
Subject: Re: [markovmodel/PyEMMA] Continuous time MSM (#951)
Hi Mamta,
apologies for the long delay. I had some time to dig into this error only now. I created a pull request with a tentative fix on markovmodel/msmtools#98<markovmodel/msmtools#98>
There seems to be some internal problem of the l_bfgs_b routine as it apparently can violate the constraints that are imposed during the minimization of the likelihood.
The fix would be to install a new version of msmtools from github once the pull request is merged and call rate_matrix with the option on_error='warn'. This will turn the error that you get into a warning. Hopefully then the l_bfgs_b minimizer will recover from overshooting the bounds in a subsequent iteration, s. t. the result will be ok.
I know that this might not be the solution you expect. However there are still some numerical difficulties with the maximum-likelihood rate matrix estimator. The gradient of the likelihood requires an element-wise division by the transition matrix which leads to a bad condition. In a previous commit, I had already implemented the ad-hoc fix that was proposed by Pande and McGibbon for this problem in DOI:10.1063/1.4926516 This might already solve the problem.
Fabian
-
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#951 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/APcc_amL0pwjv89JitiSJqpoipU-4QVSks5rOTtmgaJpZM4KL6L3>.
|
Hi,
Is it possible to generate continuous time MSM with pyEMMA.
Mamta
The text was updated successfully, but these errors were encountered: