本文整理汇总了Python中Network.calcAcc方法的典型用法代码示例。如果您正苦于以下问题:Python Network.calcAcc方法的具体用法?Python Network.calcAcc怎么用?Python Network.calcAcc使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Network
的用法示例。
在下文中一共展示了Network.calcAcc方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: ReadConfig
# 需要导入模块: import Network [as 别名]
# 或者: from Network import calcAcc [as 别名]
from dfg4grn import *
settings = ReadConfig(settings, "./config/default_values/dfg4grn.cfg")
settings = ReadConfig(settings, settings["dfg4grn"]["config"])
grid = Generate_Grid("dfg4grn", None, settings, ["eta_z", "lambda_w", "tau"], 25).test_list
jobman = JobManager(settings)
for p in grid:
settings["dfg4grn"]["eta_z"] = p[0]
settings["dfg4grn"]["lambda_w"] = p[1]
settings["dfg4grn"]["tau"] = p[2]
dfg = DFG4GRN(
timeseries_storage, trans_factors, settings, "dfg4grn-" + str(p[0]) + "." + str(p[1]) + "." + str(p[2])
)
jobman.queueJob(dfg)
print jobman.queue
jobman.runQueue()
jobman.waitToClear()
accs = []
for job in jobman.finished:
print job.alg.gene_list
print job.alg.gather_output(settings)
jobnet = Network()
jobnet.read_netmatrix(job.alg.network, job.alg.gene_list, True)
accs.append(jobnet.calcAcc(goldnet))
print accs