當前位置: 首頁>>代碼示例>>Python>>正文


Python ContinuousTimeMSM.summarize方法代碼示例

本文整理匯總了Python中msmbuilder.msm.ContinuousTimeMSM.summarize方法的典型用法代碼示例。如果您正苦於以下問題:Python ContinuousTimeMSM.summarize方法的具體用法?Python ContinuousTimeMSM.summarize怎麽用?Python ContinuousTimeMSM.summarize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在msmbuilder.msm.ContinuousTimeMSM的用法示例。


在下文中一共展示了ContinuousTimeMSM.summarize方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: test_hessian

# 需要導入模塊: from msmbuilder.msm import ContinuousTimeMSM [as 別名]
# 或者: from msmbuilder.msm.ContinuousTimeMSM import summarize [as 別名]
def test_hessian():
    grid = NDGrid(n_bins_per_feature=10, min=-np.pi, max=np.pi)
    seqs = grid.fit_transform(load_doublewell(random_state=0)['trajectories'])
    seqs = [seqs[i] for i in range(10)]

    lag_time = 10
    model = ContinuousTimeMSM(verbose=True, lag_time=lag_time)
    model.fit(seqs)
    msm = MarkovStateModel(verbose=False, lag_time=lag_time)
    print(model.summarize())
    print('MSM timescales\n', msm.fit(seqs).timescales_)
    print('Uncertainty K\n', model.uncertainty_K())
    print('Uncertainty pi\n', model.uncertainty_pi())
開發者ID:synapticarbors,項目名稱:msmbuilder-1,代碼行數:15,代碼來源:test_ratematrix.py

示例2: test_hessian_3

# 需要導入模塊: from msmbuilder.msm import ContinuousTimeMSM [as 別名]
# 或者: from msmbuilder.msm.ContinuousTimeMSM import summarize [as 別名]
def test_hessian_3():
    grid = NDGrid(n_bins_per_feature=4, min=-np.pi, max=np.pi)
    trajs = DoubleWell(random_state=0).get_cached().trajectories
    seqs = grid.fit_transform(trajs)
    seqs = [seqs[i] for i in range(10)]

    lag_time = 10
    model = ContinuousTimeMSM(verbose=False, lag_time=lag_time)
    model.fit(seqs)
    msm = MarkovStateModel(verbose=False, lag_time=lag_time)
    print(model.summarize())
    # print('MSM timescales\n', msm.fit(seqs).timescales_)
    print('Uncertainty K\n', model.uncertainty_K())
    print('Uncertainty eigs\n', model.uncertainty_eigenvalues())
開發者ID:Eigenstate,項目名稱:msmbuilder,代碼行數:16,代碼來源:test_ratematrix.py


注:本文中的msmbuilder.msm.ContinuousTimeMSM.summarize方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。