09月05, 2018

opentuner

设置存储字段: opentuner-master/opentuner/resultsdb/models.py

BBNumber = Column(Float) Condcount = Column(Float) Callscount = Column(Float) Asigncount = Column(Float) Cyccomplex = Column(Float)
ABC = Column(Float) BinDiff = Column(Float) NCP = Column(Float) NCD = Column(Float) CMD = Column(String)

配置主键 display opentuner/search/objective.py

produce a string version of a resultsdb.models.Result()
"""
rv = []
#for k in ('time', 'accuracy', 'energy', 'size', 'confidence'):
#for k in ('BBNumber', 'accuracy', 'energy', 'size', 'confidence'):
for k in ('NCD', 'accuracy', 'energy', 'size', 'confidence'): #NCD  11/28
  v = getattr(result, k)
  if v is not None:
    #rv.append('%s=%.4f' % (k, float(v))) #NCP
    rv.append('%s=%.12f' % (k, float(v)))
return ', '.join(rv)

设置基因遗传算法 opentuner/search/globalGA.py alt

driverbase.py alt

修改和创建数据库opentuner.db tuningrunmain.py

driver.py 这里面配置基因遗传算法各种参数! alt

plugin.py 添加一些排序的代码 输出内容排序!

本文链接:https://harry.uno/post/opentuner.html

-- EOF --

Comments