当前位置: 首页>>代码示例>>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;未经允许,请勿转载。