8bf6fdc8160d8e6150a0b7211b5ee41496331057,eval_ensemble.py,,,#,22

Before Change


opt = parser.parse_args()

model_infos = [utils.pickle_load(open("log_%s/infos_%s-best.pkl" %(id, id))) for id in opt.ids]
model_paths = ["log_%s/model-best.pth" %(id) for id in opt.ids]

// Load one infos
infos = model_infos[0]

After Change


model_infos = []
model_paths = []
for id in opt.ids:
    if "-" in id:
        id, app = id.split("-")
        app = "-"+app
    else:
        app = ""
    model_infos.append(utils.pickle_load(open("log_%s/infos_%s%s.pkl" %(id, id, app))))
    model_paths.append("log_%s/model%s.pth" %(id,app))

// Load one infos
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: ruotianluo/self-critical.pytorch
Commit Name: 8bf6fdc8160d8e6150a0b7211b5ee41496331057
Time: 2019-04-27
Author: rluo@ttic.edu
File Name: eval_ensemble.py
Class Name:
Method Name:


Project Name: pysb/pysb
Commit Name: 242b37fab5f5286cc3a874ac2a2eb89f617d2e37
Time: 2013-03-11
Author: bachmanjohn@gmail.com
File Name: pysb/exporters/mathematica.py
Class Name: ExportMathematica
Method Name: export