本文整理汇总了Python中NN.init方法的典型用法代码示例。如果您正苦于以下问题:Python NN.init方法的具体用法?Python NN.init怎么用?Python NN.init使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NN
的用法示例。
在下文中一共展示了NN.init方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: len
# 需要导入模块: import NN [as 别名]
# 或者: from NN import init [as 别名]
sample_dirs.sort()
if nsmpl != len(sample_dirs):
print '{0:*>20}: num_samples in in.fitpot is wrong.'.format(' Error')
exit()
read_pos()
#.....initial data
gather_ref_data(maindir)
#.....read bases data if needed
if potential in ('linreg') and not fmethod in ('test','TEST'):
read_bases(maindir)
if regularize:
vars= scale_vars(vars,bmax)
elif potential in ('NN') and not fmethod in ('test','TEST'):
NN.init(maindir,params,sample_dirs,samples,nprcs,fmatch \
,ergrefs,frcrefs,fmethod,parfile,runmode,rcut,pranges \
,vranges)
#.....1st call of func
func(vars,maindir)
if potential in ('linreg') and not fmethod in ('test','TEST'):
ergs,frcs= calc_ef_from_bases(vars,maindir)
elif potential in ('NN') and not fmethod in ('test','TEST'):
ergs,frcs= NN.calc_ef_from_bases(vars)
else:
ergs,frcs= gather_smd_data(maindir)
if fmethod in ('test','TEST') and potential in ('NN'):
NN.init(maindir,params,sample_dirs,samples,nprcs,fmatch \
,ergrefs,frcrefs,fmethod,parfile,runmode \
,rcut,pranges,vranges)