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


Python Relax_data_store.grid_results方法代碼示例

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


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

示例1: save_res

# 需要導入模塊: from data_store import Relax_data_store [as 別名]
# 或者: from data_store.Relax_data_store import grid_results [as 別名]
    # This speeds it up considerably.
    if ds.r20_from_min_r2eff:
        relax_disp.r20_from_min_r2eff(force=False)

    # Then do grid search.
    minimise.grid_search(lower=None, upper=None, inc=ds.GRID_INC, constraints=True, verbosity=ds.verbosity)

# If no Grid search, set the default values.
else:
    for param in MODEL_PARAMS[model_analyse]:
        value.set(param=param, index=None)
        # Do a grid search, which will store the chi2 value.
    #minimise.grid_search(lower=None, upper=None, inc=10, constraints=True, verbosity=ds.verbosity)

# Save result.
ds.grid_results = save_res(cur_spins)

## Now do minimisation.
minimise.execute(min_algor='simplex', func_tol=ds.set_func_tol, max_iter=ds.set_max_iter, constraints=True, scaling=True, verbosity=ds.verbosity)

# Save results
ds.min_results = save_res(cur_spins)

# Now do clustering
if ds.do_cluster:
    # Change pipe.
    ds.pipe_name_MODEL_CLUSTER = "%s_%s_CLUSTER"%(ds.pipe_name, model_analyse)
    pipe.copy(pipe_from=ds.pipe_name, pipe_to=ds.pipe_name_MODEL_CLUSTER)
    pipe.switch(pipe_name=ds.pipe_name_MODEL_CLUSTER)

    # Copy R2eff, but not the original parameters
開發者ID:pombredanne,項目名稱:relax,代碼行數:33,代碼來源:cpmg_synthetic.py


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