2dd2efb5475cb42a21f0dacaef786c89869bf2de,ml_perf/eval_models.py,,main,#Any#,41

Before Change



def main(unused_argv):
  sgf_dir = os.path.join(fsdb.eval_dir(), "target")
  target = "tf," + os.path.join(fsdb.models_dir(), "target.pb")
  models = load_train_times()
  for i, (timestamp, name, path) in enumerate(models):
    winrate = wait(evaluate_model(path, name, target, sgf_dir))
    if winrate >= 0.50:
      break

After Change


def main(unused_argv):
    models = load_train_times()
    for i, (timestamp, name, path) in enumerate(models[FLAGS.start:]):
        winrate = evaluate_model(path)
        if winrate >= 0.50:
            break

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/minigo
Commit Name: 2dd2efb5475cb42a21f0dacaef786c89869bf2de
Time: 2019-12-13
Author: tmadams@google.com
File Name: ml_perf/eval_models.py
Class Name:
Method Name: main


Project Name: tensorflow/models
Commit Name: 20070ca46f27964710a4f187d0437164e5a732c7
Time: 2018-06-20
Author: taylorrobie@google.com
File Name: official/recommendation/ncf_main.py
Class Name:
Method Name: run_ncf


Project Name: titu1994/MLSTM-FCN
Commit Name: b6308d07933d06e592539733b67c0b468d8efa49
Time: 2017-08-11
Author: titu1994@gmail.com
File Name: ck_model.py
Class Name:
Method Name: